Move it On back
Oops! Did you accidentally delete the word variable?
Traceback (most recent call last):
File "python", line 2, in
NameError: name 'word' is not defined
I think it should rearange the word but it gives me that error message...
pyg = 'ay' new_word = word + first + pyg original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word print original else: print 'empty'