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
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