Advertisement
ossipee

Piglatin

Aug 11th, 2015
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. pyg = 'ay'
  2.  
  3. original = raw_input('Enter a word:')
  4. word = original.lower()
  5. first = word[0]
  6. new_word = original[1:20] + original[0] + pyg
  7. if len(original) > 0 and original.isalpha():
  8.     print new_word
  9.  
  10. else:
  11.     print 'empty'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement