Now that you’ve seen how to use time.sleep()
, you should think of it whenever you need to make a delay or pause in your code’s execution.
In this course, you learned:
- The basics of
time.sleep()
- How you can use
timeit
to measure your code’s execution time - How to use
time.sleep()
to build an uptime bot
For some next steps for your newly-built uptime bot, check out these other Real Python resources:
Daniel Galvan on Aug. 4, 2021
Great job Martin!