So, the translator is saying my code works and I can move on
but I don't understand why I am able to use the new_word variable
as I'm declaring it for the first time?
new_word = word[1:len(new_word)] + first + pyg
I'm expecting some kind of error during run-time at least. I'm not
too sure, new to Python
original = raw_input('Enter a word:') pyg = "ay" if len(original) > 0 and original.isalpha(): word = original.lower() first = word new_word = word[1:len(new_word)] + first + pyg print new_word else: print 'empty'