Python PygLatin 14.Check Yourself!


#1

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"


#2

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


#3

you have to say else print "empty"


#4

this is my code
original = raw_input("ingresa una palabra")
if len(original) > 0:
print original
else:
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


#5

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


#7