0

A function

. Create a function called timer, that takes one argument. Use a while loop to start a timer from the argument variable you choose and decrease that variable by 1 every 1 second. Your while loop should stop when the variable becomes 0. Hint, to count the time you can use the sleep function from the time module.

13th Feb 2022, 9:25 AM
Mane
1 Answer
+ 4
Mane This sounds like homework. Do you have a code to go with your post
13th Feb 2022, 10:01 AM
Rik Wittkopp
Rik Wittkopp - avatar