Not sure Why this happens pig latin translator


#1



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)
else:
    print ("empty")


#2

Remove

raw_input("Enter a word:")

and just use

original = raw_input("Enter a word:")

#3

Thank you very much!


#4

No problem :slight_smile:


#5