Syntax Error: Expected An Indented Block Python
Syntax Error: expected an indented block python I'm getting the error above while trying to compile the following code. I need help to determine the cause of the problem. def cli
Solution 1:
Indentation in python is very important. Read this if you are not sure: http://www.python-course.eu/python3_blocks.php
def clinic():
print ("You've just entered the clinic!")
print ("Do you take the door on the left or the right?")
answer = raw_input("Type left or right and hit 'Enter'.").lower()
if answer == "left" or answer == "l":
print ("This is the Verbal Abuse Room, you heap of parrot droppings!")
elif answer == "right" or answer == "r":
print ("Of course this is the Argument Room, I've told you that already!")
else:
print ("You didn't pick left or right! Try again.")
clinic()
Post a Comment for "Syntax Error: Expected An Indented Block Python"