Advertisement
kingbode

Untitled

Oct 31st, 2024
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1.  
  2. print("Welcome to my island!")
  3. print("""There are two doors in front of you:
  4. πŸšͺ A red door and πŸšͺ a blue door.""")
  5.  
  6. door = input("Which door do you want to open? \n").lower()
  7.  
  8. if door == "red":
  9.     print("Great! Now you entered a room.")
  10.     print("You found three boxes: 🎁 white, 🎁 black, 🎁 green")
  11.  
  12.     box = input("Which box do you open? \n").lower()
  13.  
  14.     if box == "white":
  15.         print("Oops! You opened a box filled with snakes 🐍🐍🐍")
  16.     elif box == "black":
  17.         print("Oops! You opened a box filled with spiders πŸ•·οΈπŸ•·οΈπŸ•·οΈ")
  18.     elif box == "green":
  19.         print("Congratulations! You found the treasure! πŸ’°πŸ’°πŸ’°")
  20.     else:
  21.         print("Invalid choice! πŸ€·β€β™‚οΈ")
  22.  
  23. elif door == "blue":
  24.     print("Oops! You chose the crocodile door 🐊🐊🐊")
  25.     print("Game Over!")
  26. else:
  27.     print("Invalid choice! πŸ€·β€β™‚οΈ")
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement