def clinic():
print "You've just entered the clinic!"
print "Do you take the door on the left or the right?"
answer = 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()
clinic()
As shown by the comments, the 'second clinic()' at the end, is actually the
program call to the function, while the 'first clinic()' is just a recursive call inside thefunction itself.
Note: as Dave suggested, there is no point in using recursion, in such a program.
A simple iterative algorithm fits better. Try, for instance:
while True:
print("You've just entered the clinic!")
print("Do you take the door on the left or the right?")
answer = 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!")
break
elif answer == "right" or answer == "r":
print("Of course this is the Argument Room, I've told you that already!")
break
else:
print("You didn't pick left or right! Try again.")