What is the purpose of the 'pycache' directory in Python?
Correct answer
A. To store compiled bytecode files
24 views
A. To store compiled bytecode files
24 views
The 'pycache' directory in Python is used to store compiled bytecode files (.pyc) generated by the Python interpreter. These bytecode files are created to improve the performance of subsequent executions of the Python program by avoiding recompilation of source files.
Not sure why the answer is A? Ask here and get an explanation.