Python Library Module
Python also provides several standard library modules, which
contain extra functions and constants.
To use them, we must import the module.
Basic Python Library Modules
🔹 1. math
Provides mathematical functions and constants.
Examples: [Link](), [Link](), [Link], [Link]().
🔹 2. random
Used to generate random numbers.
Examples: [Link](1, 10), [Link]([1,2,3]),
[Link](list).
🔹 3. datetime
Used to work with dates and times.
Examples: [Link](), [Link]().
🔹 4. os
Interacts with the operating system.
Examples: [Link]() (current directory), [Link]() (list
files).
🔹 5. sys
Provides system-specific functions and variables.
Examples: [Link] (Python version), [Link]().
🔹 6. statistics
Used for statistical calculations.
Examples: [Link](data), [Link](data).
🔹 7. time
Provides time-related functions.
Python Library Module
Examples: [Link](2) (pause program), [Link]()
(current timestamp).
🔹 8. calendar
Used to display and work with calendars.
Example: [Link](2025, 9) (shows September 2025
calendar).
Conclusion
Built-in functions: Ready to use, no import needed, useful
for general tasks.
Library modules: Need to be imported, provide powerful
and advanced features.