Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env
- pyg = 'ay'
- pyg_input = raw_input("Digite a palavra a ser traduzida: ")
- print
- if len(pyg_input) > 0:# and pyg_input.isalpha():
- lwr_input = pyg_input.lower()
- lst = lwr_input.split()
- latin = []
- for item in lst:
- frst = item[0]
- if frst in 'aeiou':
- item = item + pyg
- else:
- item = item[1:] + frst + pyg
- latin.append(item)
- print ''.join(latin)
- print "Pig Latin"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement