Question: place = input(Choose a place: forest or cave? ) if place = forest: action = input(climb a tree or cross a river?) if action =

place = input("Choose a place: forest or cave? ") if place = "forest": action = input("climb a tree or cross a river?") if action = "climb a tree": print("You found a bird's nest!") else action = "cross a river": print("You found a boat!") elif place = "cave": print("You find a hidden treasure!")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!