One day, you find 9 mysterious burrows in your backyard! Being a brave, adventurous person you decide to investigate what is inside them….
Fill in the ________
(blanks) and complete the code to write the program below:
Ask the user for which burrow to check.
If they typed in 1, then they found a rabbit.
You found a rabbit!
Otherwise if they type in 5, then they found a gopher.
You found a gopher!
Otherwise if they typed in 9, then they found the treasure!
You found the treasure!
If they typed in anything other than 1, 5, or 9, then they found nothing.
Sorry, just an empty burrow!
Remember to use the Python reference sheet to help you with your code! Click on one of the buttons below:
Need some help? Click here to reveal a video walkthrough for this task!
1
and 9
, and display the appropriate output message based on the values above.Below is an example of how the program should run:
Which burrow would you like to check (1-9): 1
You found a rabbit!
Which burrow would you like to check (1-9): 5
You found a gopher!
Which burrow would you like to check (1-9): 9
You found the treasure!
Which burrow would you like to check (1-9): 7
Sorry, just an empty burrow!