Python "Word Up" problem


pyg = 'ay'

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
print original
print 'empty'
word = original.lower()
first = word[0]

The error message is "Did you create a variable called word?
I think my problem is that word is not inside of the if statement but I can't figure out where to put it.


My first guess is that the code that creates that variable did not get run, thus you did not create that variable, as the error message says.

So, what would need to happen for the line of code that creates that variable to execute?