#sample solution
pyg = 'ay'
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
print original
word = original.lower()
print "Word is: " + word
first = word[0]
print "First is: " + first
if first == "a" or first == "e" or first == "i" or first == "o" or first == "u":
print "vowel"
else:
print "consonant"
else:
print 'empty'
No comments:
Post a Comment