- import math_operations
- math_operations.add()
- from math_operations import add,subtract
- result = add(2,3)
- from math_operations import add as addition
- result = addition(4,6)
- the name variable contains the name of the current module
- when we run this math_o.py drectly, the code inside the if name == main block will be executed,
- however we import ‘math_operations.py’ into ‘main.py’, the code inside the if name == main will not executed
- from my_package import module1 as m1
- from mypackage import *
- external pip
- pip install -r requirements.txt