QuestionQ69

VerifiedModules and Packages

A Python module named pymod.py contains a variable named pyvar.

Which of the following code snippets allow access to the variable?

Choose two
Explanation

A wildcard import makes pyvar directly available in the importing namespace. Importing pymod makes the variable available through the qualified name pymod.pyvar.

Community Discussion

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