Check Yourself..Some More faulty but doesn't know it?!


Here is my code: I was told "Congratulations!" as though it works, but it doesn't, because it doesn't matter what I type into the console, it makes me press "enter" twice and then writes "empty" regardless of whether I typed a world with letters, numbers, or nothing at all.

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
raw_input("Enter a word:")
original = raw_input()

if len(original) > 0 and original.isalpha():
    print original
    print "empty


This gets copied a lot.

We need to assign the input to a variable so we can evaluate it.

original = raw_input("Enter a word")

Remove the line,

raw_input("Enter a word")


Thank you! Now it works.