The following statement:
from a.b import c
causes the import of:
- entity c from module b from package a
- entity a from module b from package c
- entity c from module a from package b
- entity b from module a from package c
Explanation: When using the notation from a.b import c, c identifies the entity or function being imported, b identifies the module (source file), and a the package (folder).
More Questions: Python Essentials 2 – Module 1 Test
Please login or Register to submit your answer