QuestionQ89

VerifiedModules and Packages

Regarding the directory structure below, select the correct directive forms for importing module_b.

Question Image

Choose two
Explanation

module_b is a module within the upper subpackage of pypack, so its fully qualified name is pypack.upper.module_b. Python supports importing a submodule using its dotted package path or using from package import submodule. Python documentation: Modules—Packages

Learn more

Community Discussion

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