Incorrect Question 3 The lock is counting down how many times it takes until it turns itself off. If they put the wrong

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 3 The lock is counting down how many times it takes until it turns itself off. If they put the wrong

Post by answerhappygod »

Incorrect Question 3 The Lock Is Counting Down How Many Times It Takes Until It Turns Itself Off If They Put The Wrong 1
Incorrect Question 3 The Lock Is Counting Down How Many Times It Takes Until It Turns Itself Off If They Put The Wrong 1 (331.08 KiB) Viewed 36 times
The lock is counting down how many times it takes until it turns itself off. If they put the wrong value in 10 times, the lock locks up. However, for some reason it is running forever. how can we fix this lock?
This code needs only one line fixed to work. Please help. Thanks.
Incorrect Question 3 The lock is counting down how many times it takes until it turns itself off. If they put the wrong value in 10 times, the lock locks up. However, for some reason it is running forever. How can we fix this lock? 1 attempts = 10 2 while (attempts > 0): 3 4 5 6 break 0/1 pts value = int( input("What value are you inputting?\n")) if (value ==12345): Unlocking") print("Correct! attempts += 1
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply