Created
September 8, 2021 12:54
-
-
Save Abhayparashar31/19c0a0f047d8410e6f450a67ba9f6c19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Write a fun Python script that takes the user on a fun adventure by choosing different options for the path. | |
| ''' | |
| name = str(input("Enter Your Name\n")) | |
| print(f"{name} you are stuck in a forest. Your task is to get out from the forest without dieing") | |
| print("You are walking threw forest and suddenly a wolf comes in your way. Now You have two options.") | |
| print("1.Run 2. Climb The Nearest Tree ") | |
| user = int(input("Choose one option 1 or 2")) | |
| if user==1: | |
| print("You Died!!") | |
| elif user==2: | |
| print("You Survived!!") | |
| else: | |
| print("Incorrect Input") | |
| #### Add a loop and increase the story as much as you can |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment