What is wrong with my code?


#1

When I put the word it doesn't take the first word so like would be likeay instead of ikelay

original = raw_input('Enter a word:')
word = original.lower()
first = word[0]
pyg = 'ay'
new_word[1:]
new_word =word + first + pyg
if len(original) > 0 and original.isalpha():
print original.lower()
else :
print 'empty'


#2

pyg = 'ay'
s = 'Charlie'
new_word = word + first + pyg
original = raw_input('Enter a word:')
word = orginal.lower()
first= word[0]
if len(original) > 0 and original.isalpha():

print original

else:
print 'empty'

Correct code similar to yours just slightly different