Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pyg = 'ay'
- original = raw_input('Enter a word:')
- word = original.lower()
- first = word[0]
- `new_word = word[1:] + first + pyg` and `new_word = "empty"`
- if len(original) > 0 and original.isalpha():
- if first in ["a","e","i","o","u"]:
- pass
- else:
- print new_word
- """File "python", line 6
- `new_word = word[1:] + first + pyg` and `new_word = "empty"`
- ^
- SyntaxError: invalid syntax"""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement