QuestionQ22Verified/Modules and PackagesCopy linkReport a problemAsk AstroTutorSave questionWhich statement about Python packages is true?Aa package is a single file whose name ends with the pa extensionBa package is a group of related modulesCthe name variable always contains the name of a packageDthe pyc extension is used to mark semi-compiled Python packagesShow AnswerAnswerExplanationA Python package groups related Python modules into a common namespace. A standalone Python source file is a module, and .pyc files contain compiled bytecode for modules rather than identifying packages.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion