-4

I just programed this code and i have i problem with it.

#!/user/bin/python
x=raw_input("your name?: ")
if x==raw_input("john"):
print "Welcome john"

And here is the error.


    print "welcome john"
        ^
Indentation-error: expected an indented block

1 Answers1

1

You must indent the block after if:

#!/user/bin/python
x=raw_input("your name?: ")
if x==raw_input("john"):
    print "Welcome john"

Use four spaces per level of indention.