Move it on back


#1

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

else:
print 'empty'

regards and thank you,


#3

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


#5

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