Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 10: Mastering Python Modules!
Instruction
Using Modules
The Python standard library, as well as third-party packages (which Iβll use interchangeably with the term libraries), are structured as modules. In order to use a particular module, you have to βactivateβ it in your Python session using the import statement.
import math
math.cos(math.pi)
Output:
-1.0
In these statements, we have imported the math module. This module has many functions, on...