Cannot make pyg latin translator work after finishing all code


#1

Hi, I've finished the code tutorial for the pyg latin translator. It is telling me it should work now, however when I run it, I get the word output that I enter, but it is still as I entered it. I followed the instructions and tried to find others with the same issue, but I just cannot work out why it isn't working. Any help would be greatly appreciated. Below is my code.

pyg = 'ay'

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
    word = original.lower()
    first = word[0]
    new_word = word + first + pyg
    new_word = new_word[1:]
    print original
else:
    print 'empty'


#2

@datacoder39560,
Try it by printing the new_word


#3

Argh. That makes complete sense. And it solved it. Thank you very much :slight_smile: