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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post by answerhappygod »

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 1
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 1 (350.03 KiB) Viewed 38 times
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 latet" or "You have a peg leg, come back later".
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):
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply