Ending Up. Need help with the code


#1



Hello, I need some help,I always getting an error that "Oops, try again. It looks like new_word contains "jackjay" instead of "ackjay"!"
Can someone tell me whats wrong with my code:slight_smile:


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:len(new_word)]
    print new_word
else:
    print 'empty'


#2

this line:

new_word[1:len(new_word)]

you take the slice, but you don't store it anywhere, maybe a good idea to store it in a variable? for example by updating new_word?


#3

Thanks, i found my stupid mistake. Thanks again)