Pyglatin lesson:check yourself-error to fix


#1

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
original = raw_input("Enter a word: ")
if len(original) > 0:
print original
else:
    print "empty"

the error is "Did you accidentally delete the variable called original? " -why is this given out an error?


#2

Indentation, as always.

This doesn't help...


#3

i tried that already with
if len(original) > 0:

it still has a problem with the variable original


#4

Ignore what codecademy is saying and read the error message in your console instead
consider carefully what it says, google it if it's unclear


#5

the console says

File "python", line 6
print original
^
IndentationError: expected an indented block

is this the proper syntax?


#6

Just indent 'print original' line, I'm pretty sure that's all you need.