• Create modules by writing Python code in .py files.
  • Import modules using import modulefrom module import name, or aliasing.
  • Modules enable code reuse and organisation across Python projects.
pip install numpy
from numpy import array
arr = array([1, 2, 3])
print(arr)
import numpy
# OR
import numpy as np
 
#component