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
The from Keyword
Specific functions in a module can be imported using the from
keyword:
from area import triangle, cylinder
These functions can be called directly, without referring to the module:
print(triangle(1, 2))
print(cylinder(3, 4))
Checkpoint: Importing Functions
<iframe src="https://drive.google.com/file/d/1cjVtCLYmb-uP57is0R5cD1DG4rf2GGD_/preview" width="640"...