lesson_5_ex_3_17_18

# -*- coding: utf-8 -*-
"""
Created on Mon Mar 26 18:47:34 2018

@author: stkarlos
"""

x = raw_input(" dose 8psifio kodiko: ")

if len(x) != 8:
    print 'dose ksana'
elif x[0] != x[-1] or x.count('a') != x.count('!'):
    print 'lathos kodikos'
else:
    print 'dektos'

 

Posted in Uncategorized