Using Dot Notation for Imported Objects
Here is what happened. When you type
import adder at the beginning of the
main.py Python file, the imported module’s entire namespace is added to the namespace of the calling module under the name of the imported module—so in this case,
Become a Member to join the conversation.