The board says that I passed and completed But, does not work!?!?!


the message board says that I passed and completed the exercise and lets me go to the next one. But the program does not do what it's supposed to do.

Replace this line with your 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
    print ' empty'


The first five lines of the if statement have too much indentation.

This line should be print new_word. We don't need to print original in this part of the exercise.


Hey thanks mtf, the print new_word was the problem. I really appreciate it. Padewan


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