Modules Flashcards

1
Q

Give the two ways that a Python source file can be executed

A
As a main programme
as a module or package
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What three things happen when a module is imported?

A

A namespace is created
Code in the module is executed
A name within the caller is created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly