Passing the lessons, but the code isn't working


I'm at the "Testing, testing, etc." lesson, basically just the postliminary lesson to test the code. I've passed all of the lessons, but the code itself doesn't work. It simply returns the original word with no changes. What's happening?

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:len(new_word)]
    print original
    print 'empty'


Change this to print new_word. We no longer need to print original.


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