Where are compiled .pyc files stored in Python?
-
A
In the system32 folder
-
B
In the __pycache__ directory
Correct answer
-
C
In the Python install root only
-
D
They are never stored
Correct answer
B. In the __pycache__ directory
Explanation
Python caches bytecode in __pycache__ to speed up imports.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ