Question: undefined For this problem you'll ask the user about their favorite game. Make sure you name the file tricky_lock.py (all lower case). In order to

undefined For this problem you'll ask the user about their favorite game.undefined

For this problem you'll ask the user about their favorite game. Make sure you name the file tricky_lock.py (all lower case). In order to open a lock, you need a two number combination and the correct combination on three switches. The numbers range from 1 to 25, and the switches can be up or down. The lock will open if the sum of the two numbers is equal to 36, and exactly two of the three switches are in the up position (meaning that the other one is down). The rules are here: 1. If both of these conditions are true, then the lock opens. 2. If one of the two conditions are true, then the lock will clank loosely but does not open. 3. If they are both false then the lock is solidly closed. Feel free to use the lower() method to ensure that the 'up' and 'down'input is case insensitive. However for testing we'll ensure that all input is in lowercase. Warning: Be careful not to do something like if x == 'up' or y or z: Remember that this will only check the first condition against 'up' to see if they're equal. The rest will be converted to booleans and tested

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 Databases Questions!