Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = raw_input("Enter a word: ")
- if len(n)>0 and n.isalpha():
- n.lower()
- first_letter = n[0]
- if first_letter == ('a'or'e'or'i'or'o'or'u'):
- reqd_word = n + 'ay'
- else:
- reqd_word = n[1:] + 'ay' + first_letter
- print reqd_word
- else:
- print "Wrong or Invalid word!! "
Add Comment
Please, Sign In to add comment