So I'm stuck on "Word up" and I don't know what to do despite having tried doing lots of things to my code.
I've created a variable called "word" (see code below), yet the program thinks that I haven't. I can type a word in, but when I press Enter, it says that "word" (on line 11) isn't defined.
I expect the code to work the way that it should.
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): print original else: print 'empty' word = word.lower() first = raw_input