Python Piglatin

sentence = input('Please enter a sentence to translate: ')

words = sentence.split(' ')

ordsway = []



for word in words:

    ordway = word[1:] + word[0] + 'ay'

    ordsway.append(ordway)

    

print(' '.join(ordsway))


0 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )