Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text=raw_input("What would you like to translate?")
- list=text.split()
- translation=""
- for word in list:
- pyg = 'ay'
- original = word
- if len(original) > 0 and original.isalpha():
- word = original.lower()
- first = word[0]
- else:
- print 'empty'
- if first == "a" or first == "e" or first == "i" or first == "o" or first == "u":
- new_word = word + "w" + pyg
- else:
- new_word = word + first + pyg
- new_word = new_word[1:len(new_word)]
- translation=translation+new_word+" "
- print translation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement