In [ ]:
import time

def start_game():
    print("You wake up in a dark room...")
    time.sleep(2)
    print("You can hear faint whispers and footsteps...")
    time.sleep(2)
    print("You heart starts pounding as you realize you are not alone...")
    time.sleep(2)
    print("You need to find a way out before it is too late!!!")
    
    while True:
        choice = input("What do you?(1. Look around, 2. Scream for help, 3. Continue Walking):")
        
        if choice == "1":
            print("You decide to look around...")
            time.sleep(2)
            print("Which door do you choose? 1,2,3)")
            
            door_choice = input()
            
            if door_choice == "1":
                print("You open the door and find a staircase leading down..")
                time.sleep(2)
                print("You carefully go down the stairs..")
                time.sleep(2)
                print("Suddenly, you hear a loud noise behide you...")
                time.sleep(2)
                print("You turn around and see a shadow...")
                print("game is over!!! The shadown surrounds you...")
                break
                
        if choice == "2":
        
            
            if door_choice == "2":
                print("You open the door behide and find a dusty old study...")
                time.sleep(2)
                print("Asyou search the room, you find a hidden key..")
                time.sleep(2)
                print("You have a feeling the key might be useful...")
                time.sleep(2)
                print("You continue exploring the house...")
                time.sleep(2)
                print("Good luck!!!")
                break
                
        if choice == "3":
        
            
            if door_choice == "3":
                print("You open the door and find a room full of dolls...")
                time.sleep(2)
                print("The dolls eyes seem to follow your every move you make...")
                time.sleep(2)
                print("You feel a chill down your spine...")
                time.sleep(2)
                print("You quickly close the door and try another one...")
                time.sleep(2)
                print("Be very careful!!!")
                break
        
            else:
                print("Invalid choice. Try again.")
start_game()
You wake up in a dark room...
You can hear faint whispers and footsteps...
You heart starts pounding as you realize you are not alone...
You need to find a way out before it is too late!!!
In [ ]: