Check yourself: SOS


#1

I alread read the discuss, and I still have my question... please. Help me

original = raw_input("enter a word: ")
if len(original) > 0:
print original

else: 
print "empty"

ERROR :
File "python", line 5
if len(original) > 0:
^
IndentationError: unexpected indent

What is wrong?


#2

You indented your if statement which shouldn't be indented. I can't see the indents for your code, but they should be like this:

original = raw_input("enter a word: ") 
if len(original) > 0:
    print original

else: 
    print "empty"

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.