Check yourself part 1


#1

Code is working but it's not working entirely right. I can't figure out what's wrong

In case that didn't load in properly, my code is:

print 'Welcome to the Pig Latin Translator!'

# Start coding here!

raw_input("Enter a word: ")
original = raw_input("Enter a word: ")

if len(original) > 0:
** print original**
else:
** print "empty"**

Originally, I had the raw_input stored as:

original = raw_input()

It was running the code, but when asking for an input, I had to enter a value once and then enter a new value before it would check the input using the if statement. I saw suggestions that you should store the input as:

original = raw_input("Enter a word: ")

But all that did was ask me to enter a word twice before it would check the value. Don't know what's wrong.


#2

Not needed. This line may be removed.


#3

I feel like a dope. Thanks for the help.


#4

Whatever you feel, go easy on yourself. We all make mistakes and when you get to my age, regularly and with frequency. Just keep at it and pat yourself on the back for your persistence and due diligence.