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
Concepts in Practice: The from Keyword
Which import statement would be needed before running print(sqrt(25))?
Answer: from mat...