It says i have an indented block when i dont?

Posted by user3728373 on Stack Overflow See other posts from Stack Overflow or by user3728373
Published on 2014-06-11T03:20:57Z Indexed on 2014/06/11 3:24 UTC
Read the original article Hit count: 178

Filed under:
|
|
def cave(): 
    global key
    global response
    print(''' You find yourself standing infront of a cave.
You venture into the cave to find a large door blocking
your path.
(insert key, turn around''')
    response = input("Enter a command: ")
    while response != 'insert key' or response != 'turn around':
        if response =='insert key' or response == 'turn around':
            break
        print('Choose one of the options: ")
        response = input()
    if response == 'insert key':
        if key == 1:
              win()
        else:
              print('''You don't have a key. Get One!!''')
    elif response == 'turn around' :
        home()

© Stack Overflow or respective owner

Related posts about python

Related posts about python-2.7