Oops, try again. Your code looks a bit off. Check the Hint if you need help!


#1

Im pretty sure I have the right code.
original = raw_input("Enter a word:")
if len(original) == 0:
print original
else:
print "empty"


#2

Notice this line and you will have found your error.


#3

I updated my code so it looks like this
original = raw_input("Enter a word:")
if len(original) >0:
print original
else:
print "empty"

and the error I get in the console is

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


#4

Does your code look like the following,

Python Code:

original = raw_input("Enter some stuff")
if len(original) > 0:
    print(original)
else:
    print("Fail")

Notice my indentation levels. Each indent is == 4 spaces.


#5

Thanks man i forgot i needed to indent.


#6

Ok that works but what do you do when you get a builtin_function_or_method has no len


#7

Is indentation all about giving spaces?
Why is that so necessary?
Pls help.


#8

What's indentation madam?