Word up


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

word = word.lower()
first = raw_input[0]


For this step, replace the above line with your code and leave the else clause at the bottom.


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