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