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 across 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.


unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 4 / 5. Vote count: 9

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: , ,