Find the monster!

door-140 door-140 door-140

Will you dare open one of the three doors above. (Click on a door to open or close it.)

Did you come accross any monster? If not carry on opening doors till you find a monster!

Your Challenge

Check the Python code below. This code lets the user open one of the three doors to see if there is a monster behind the selected door.

Your task consists of tweaking this code further to enable the user to carry on opening doors till they find the monster. To do so you will need to use a while loop.

The program should count how many doors the user did open and stop once the user meets the monster.

Share Button
Posted in Computer Science, Python - Intermediate, Python Challenges Tagged with: , ,

Our Latest Book

Follow this blog