Modules and Packages
Modules
A module is a file containing Python code. You can use code from other modules using import
.
import math
print(math.sqrt(16))
Packages
A package is a collection of modules in a directory with an __init__.py
file.
← Previous: Input and Output |
---|