When i run it i get the result: Oops, try again. It looks like new_word contains "hellohay" instead of "ellohay"!


#1

pyg = "ay"
original = raw_input('Enter a word:')
word = original.lower()
first = word[0]
new_word[1:len(word)] + first + pyg

if len(original) > 0 and original.isalpha():
print new_word
else:
print 'empty'

When i run it i get the result: Oops, try again. It looks like new_word contains "hellohay" instead of "ellohay"!
Why


#2

Your

should be

new_word = word[1:len(word)] + first + pyg

AND
i would put your

if len(original) > 0 and original.isalpha():

directly after your =raw_input=