QuestionQ117

VerifiedModules and Packages

A Python module called pymod.py includes a function called pyfun().

Which of the following snippets allow you to call the function?

Choose two
Explanation

Importing pymod makes pyfun() available through the module namespace as pymod.pyfun(). Importing pyfun directly from pymod makes it available as pyfun().

Community Discussion

No comments yet. Be the first to start the discussion!