Move it on back


Good day

please see my code below, for some reason my first letter does not move the last position but the website still picks it up as correct.I'm not sure what I did wrong though
please advise?

pyg = 'ay'

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():

original = original.lower()
first = original[0]
new_word = original + first + pyg
print original

print 'empty'

regards and thank you,


it did move to last position? But you are still printing original which contains the original string, not the pyglatin version


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.