Error with accuracy checking in PygLatin part 2.2 Word Up


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
    print 'empty'.


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


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