
The time … there was a typo: it’s time, not timer…) module provides a sleep() function to cause a delay of a specified time. Use this function to write a function countdown(n), which counts down from a given non-negative integer n to 0, one step each second. Use try and except in such a way that the countdown cannot be stopped by pressing Ctrl-C. Show transcribed image text The time … there was a typo: it’s time, not timer…) module provides a sleep() function to cause a delay of a specified time. Use this function to write a function countdown(n), which counts down from a given non-negative integer n to 0, one step each second. Use try and except in such a way that the countdown cannot be stopped by pressing Ctrl-C.
Expert Answer
Answer to The time … there was a typo: it’s time, not timer…) module provides a sleep() function to cause a delay of a specifi…