Knowing that a function named fun() resides in a module named mod, and it has been imported using the following line:
import mod
Choose the way it can be invoked in your code.
- mod.fun()
- mod::fun()
- mod‑>fun()
- fun()
Explanation: If the entire module is imported, function invocation must use the following syntax module_name.funcion_name().
More Questions: Python Essentials 2 – Module 1 Test
Please login or Register to submit your answer