The code I did is giving me back the error
Traceback (most recent call last):
File "python", line 7, in
NameError: name 'new_word' is not defined
it was working at one point but i guess i did something accedentally and didn´t notice what and now i cannot fix it
original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): pyg = "ay" word = original.lower() first = word new_word = word[1:len(new_word)] + first + pyg print new_word else: print 'empty'