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


#1

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

#2

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")

#3

Thank you! Now it works.