My code runs correctly, but I’m not getting the green light.
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word new_word = word + first + pyg print new_word[1:len(new_word)] else: print 'empty'
Enter a word:Test esttay
It looks like you printed the correct translation of “test”, but make sure to set new_word equal to the slice as well.
I know that the error message tells me what I’m getting wrong. But I can’t figure out how to fix that.