QuestionQ105

VerifiedModules and Packages

With respect to the directory structure below, select the proper directive forms, in order, for importing module_c.

Question Image

Choose two
Explanation

Python packages use dotted module names that follow the package hierarchy. Since module_c is in pypack.upper.lower, both from pypack.upper.lower import module_c and import pypack.upper.lower.module_c correctly identify that module. Python import system

Learn more

Community Discussion

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