Friday , September 20 2024

The following statement: from a.b import c causes the import of:

Questions BankCategory: Python Essentials 2The following statement: from a.b import c causes the import of:
The following statement:

from a.b import c

causes the import of:

  • entity a from module b from package c
  • entity b from module a from package c
  • entity c from module a from package b
  • entity c from module b from package a

Explanation: When using the following syntax: from a.b import c, c identifies the entity or function being imported, b identifies the module (source file), and a identifies the package (folder).

More Questions: Python Essentials 2 (PE2) Course Final Test