Pyglatin debug


#1

pyg = 'ay'

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

it works kind of but when i run the code and enter a word no matter what the word is it will translate it to ylekay. for instance i enter hello it will translate it to ylekay. if you know what is wrong please let me know


#2

So you get their input as the variable original, but you don't use that anywhere else. You start using word, but that isn't defined anywhere. Maybe replacing the word original with word would make your code work better?