My code works perfectly. But I am not sure that it is supposed to. It works perfectly in the sense that when I use the Save & Submit button, I get "Way to go! Start Next Lesson"
1] As far as I understand, the variable word, now holds not only original, but the new and improved original which is in lower case?.
Enter a word: Boat
2] I am guessing the reason I am still getting "Boat and not "boat" is because I still have a "print original" and not "print word" ?
3] I was hoping to get an error, so I could test the debug. But as far as I see, the only way to check is by clicking on the Submit & Save button, or is there another way? Because as soon as I do that and receive a "Way to go! Start Next Lesson, the "Reset" or "Undo Code" buttons disappear and I don't see a natural way to go back, to test again. Am I missing out on something?
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word print original else: print 'empty'