Python_Modules_and_Packages_Guide
Python_Modules_and_Packages_Guide
These modules are included in Python by default and do not require installation.
These libraries are widely used but must be installed using pip.
You can create your own module by saving Python functions in a .py file.
Example:
# mymodule.py
def greet(name):
return f"Hello, {name}!"
Importing:
import mymodule
print(mymodule.greet("Alice"))