Lesson 35. Useful libraries
After reading lesson 35, you’ll be able to
- Bring libraries from outside the standard Python package into your code
- Use the math library to do mathematical operations
- Use the random library to generate random numbers
- Use the time library to time programs
Programming is an activity that’s usually most efficient and enjoyable when you build upon work that others have done. Some problems have already been solved, and code has likely been written to solve similar tasks to the ones that you’re trying to solve. It’s highly unlikely that you’ll have to start a task by implementing code to do everything from scratch. In any language, libraries exist that you can use to help you code tasks in a modular way: by building upon ...
Get Get Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.