Advertisement
rfmonk

pyg9of12.3.py

Nov 16th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 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 = word[1:] + first + pyg` and `new_word = "empty"`
  7.  
  8.  
  9. if len(original) > 0 and original.isalpha():
  10.     if first in ["a","e","i","o","u"]:
  11.         pass
  12.    
  13. else:
  14.     print new_word
  15.  
  16. """File "python", line 6
  17.    `new_word = word[1:] + first + pyg` and `new_word = "empty"`
  18.              ^
  19. SyntaxError: invalid syntax"""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement