Traceback (most recent call last):
File "python", line 2, in
NameError: name 'word' is not defined
I don't understand why it can't understand "name 'word'"
Replace this line with your code. pyg = 'ay' first = word word = original.lower() original = raw_input('Enter a word:') new_word = word + first + pyg new_word = new_word[1:len(new_word)] if len(original) > 0 and original.isalpha(): print original else: print 'empty'