Question: python . Write a python program that does the following: Asks the player their name. Welcomes player to the game. . Gives game description by
. Write a python program that does the following: Asks the player their name. Welcomes player to the game. . Gives game description by defining a function to display it. "You are in a land full of dragons. In front of you, you see five caves. In one cave, the dragon is friendly and will share his treasure with you. The other dragon is greedy, hungry, and will eat you on sight." Asks the user to select a cave. Prints the following and sleeps two seconds after each sentence 'You approach the cave... 'It is dark and spooky.. 'A large dragon jumps out in front of you! He opens his jaws and... Your program chooses which one of the five caves is the friendly cave. If the cave chosekliby the user and the program matches, then you print 'Gives you his treasure!' Else you print 'Gobbles you down in one bite! Ask the user if they would like to play again If yes, play the game again . If no, end the game
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
