Pyglatin translator gets delay after a few tries


#1

I am passing the 'testing testing is this thing on', but when I run the code on a few words eventually the output becomes delayed. I will enter 'first' and the translation of the previous word comes up instead. I try again and it doesn't matter what I enter, irstfay comes up. Does this explanation make sense?

https://www.codecademy.com/courses/python-beginner-2W5v7/1/5?curriculum_id=4f89dab3d788890003000096

I don't understand why it works the first few times I test it, but then becomes delayed. Is it a glitch in the website or is my code faulty?

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

#2

orginal is not defined at this point in the program. You need to bring the raw_input line up to above this line.

word = original.lower()
first = word[0]
new_word = word + first + pyg 
new_word = new_word[1:len(new_word)]

Put all these lines in place of this line:

    print new_word

#3

That makes total sense. Thank you!