Guest User

Untitled

a guest
Jun 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. n = raw_input("Enter a word: ")
  2. if len(n)>0 and n.isalpha():
  3. n.lower()
  4. first_letter = n[0]
  5. if first_letter == ('a'or'e'or'i'or'o'or'u'):
  6. reqd_word = n + 'ay'
  7. else:
  8. reqd_word = n[1:] + 'ay' + first_letter
  9. print reqd_word
  10. else:
  11. print "Wrong or Invalid word!! "
Add Comment
Please, Sign In to add comment