0% found this document useful (0 votes)
2 views2 pages

Python Standard Library Modules

Uploaded by

rudrabaddar76
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Python Standard Library Modules

Uploaded by

rudrabaddar76
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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.

You might also like