Python PygLatin 14.Check Yourself!


I am confused on what to do here. I used this code and it kept on saying "Oops,try again did you use if and else in your code?"

print 'Welcome to the Pig Latin Translator!'
variable_name = raw_input("Enter a Word:")
original = raw_input()
if len("original")>0:
print "empty"


why do you have raw_input twice?

you have an if condition in which you check if string "original" has a length greater then zero, and no else


you have to say else print "empty"


this is my code
original = raw_input("ingresa una palabra")
if len(original) > 0:
print original
print "vacĂ­o"

and return this error
File "python", line 5
if len(original) > 0:
IndentationError: unexpected indent

i don't understand that is wrong

(i'm chilean my english is very bad)
i hope you can help me


the line which shows an error shouldn't have an indention, why did you indent it with 4 spaces?