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
- How you can use
timeitto 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:
- Python Web Applications: Deploy Your Script as a Flask App | Real Python Tutorial
- Sending Emails With Python | Real Python Tutorial
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
Daniel Galvan on Aug. 4, 2021
Great job Martin!