- To use a Python module I can import it by typing
importfollowed by the name of the module. This will import the module with all its functions and methods
import string
print(string.ascii_lowercase)
- I can just import a particular method or function in a module instead of the whole module
from string import ascii_uppercase
print(ascii_uppercase)