Lesson 10 - Ending Up
Oops, try again. word should contain the .lower()-case version of original.
Not sure why it keeps throwing this error. I realize my code doesn't use both the "word" and "original" variables, which for some inexplicable reason Codecademy decided to change around for random chapters in this. However I've adjusted the variable names to compensate without success. Any idea what I am missing here?
pyg = 'ay' word = raw_input('Enter a word:') word = word.lower() if len(word) > 0 and word.isalpha(): first = word word = word[1:] new_word = word + first + pyg print new_word else: print 'empty'