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


#1



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
    new_word[1:]
    
    print new_word 
else:
    print 'empty'


#2

this line:

new_word[1:]

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

new_word = new_word[1:]

otherwise the change won't persist


#3

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