Traceback (most recent call last):
File "python", line 6, in
NameError: name 'new_word' is not defined
I think, the instruction to this part is wrong, because it tells you to use [1:len(new_word)] while you're just defining the variable "new_word". When I changed this to [1:len(word)] or just [1:] - everything was well. I assume I could be wrong - anyways, maybe it'll help someone with similar problem... Thank you.
pyg = 'ay' original = raw_input('Enter a word:') word=original.lower() first=word new_word=word[1:len(new_word)]+first+pyg if len(original) > 0 and original.isalpha(): print (new_word) else: print 'empty'