QuestionQ18Verified/Modules and PackagesCopy linkReport a problemAsk AstroTutorSave questionRegarding the directory structure below, select the correct directive forms to import module_a. Choose twoAimport pypack.module_aBimport module_a from pypackCimport module_aDfrom pypack import module_aShow AnswerAnswerExplanationmodule_a.py is a direct submodule of the pypack package, so it can be imported as pypack.module_a or imported by name from pypack. Python’s package import syntax supports both fully qualified imports and from package import module imports.Learn morePython documentation — ModulesShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion