Ending Up: Can't get rid of first letter



My error message says
Oops, try again. It looks like new_word contains "zachzay" instead of "achzay"!

. pyg = 'ay'

original = raw_input('Enter a word:')

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


you take a slice here:


but you don't store the result of the slice anywhere:

example = "hello world"
print example // would output hello world
example = example[0:5]
print example // would output hello

see how you need to store the slice? Or you can print it directly


Cool thanks I got it. Very nice explanation.