Error with accuracy checking in PygLatin part 2.2 Word Up


#1



https://www.codecademy.com/en/courses/python-beginner-2W5v7/1/2?curriculum_id=4f89dab3d788890003000096

Now, this registers as correct, but it outputs simply "word" not "wordpay".


When I type "word" into the box on the right, I expect it to out-put "Wordpay", but all that returns is "word". This makes no sense to me, so when I try to move on, I am no longer able to think through the logic of the input/output code...however, the same sort of thing happens in the Move It On Back exercise...Can someone help explain what exactly I am looking for?


pyg = 'ay'

original = raw_input('Enter a word:')

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


#2

well, new_word contains what you want to output, but you never print new_word, you only print original, which contains the original word the user entered


#3

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