Ending up - not sure why this isn't working?


Ending Up

Error: Oops, try again. It looks like new_word contains "helhay" instead of "elhay"!

I don't see why it is not removing the first letter, if anyone can help i'd be grateful

pyg = 'ay'

original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
    word = original.lower()
    first = word[0]
    new_word = word + first + pyg
    print new_word 
    print 'empty'


this line:


you don't update new_word, you need to update it:

new_word = new_word[1:]

otherwise the change won't persist


new_word = new_word[1:] is the correct way just a typo