Not sure Why this happens pig latin translator


Check Yourself!

This is my code. No error message but when inputing my word, but I have to press enter twice to receive "empty" or write my word twice to appear. If i write my word first then press enter then enter again I get "empty".

I thought I would just need to type in my answer once

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
raw_input("Enter a word:")
original = raw_input()
if len(original) > 0:
    print (original)
    print ("empty")



raw_input("Enter a word:")

and just use

original = raw_input("Enter a word:")


Thank you very much!


No problem :slight_smile: