Summary Flashcards

(3 cards)

1
Q

What is true about Python packages?

A

A. the sys.path variable is a list of strings
C. __pycache__ is a folder that stores semi-compiled python modules.

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

A pyhon module named pymod.py contains a variable named pyvar. Which of the following snippets will let you access the variable?

A

A. import pyvar from pymod
pyvar = 1

B. import pymod
pymod.pyvar = 1

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