Page 1 of 1

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

Posted: Mon Jul 11, 2022 9:49 am
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 37 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