QuestionQ39

VerifiedModules and Packages

A Python package called pypack contains a module named pymod.py, which defines a function named pyfun().

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

Choose two
Explanation

A direct import of pyfun from pypack.pymod places the function in the current namespace. Importing pypack.pymod also permits access to the function through the fully qualified name pypack.pymod.pyfun().

Community Discussion

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