Incorrect Question 2 The lock will unlock if its value is 24. However if user has an eye patch or a peg leg it will not
Posted: Mon Jul 11, 2022 9:49 am
This code needs only one line corrected to work. Please help and dont copy answers from other questions like this. They are not correct.
Incorrect Question 2 The lock will unlock if its value is 24. However if user has an eye patch or a peg leg it will not open when it is 24. Instead it will print out the message "You have an eye patch, come back later" or "You have a peg leg. come back later". 1 if (eye_patch 2 print("You (peg_leg 3 if 4 print("You 5 elif (value == 6 0/1 pts True): have an eye patch, come back later") True): have a peg leg, come back later") 24): print("You have unlocked the lock") if (value == 24 & eye_patch != True & peg Jeg != True):