Friday , September 20 2024

The compiled Python bytecode is stored in files which have their names ending with:

Questions BankCategory: Python Essentials 2The compiled Python bytecode is stored in files which have their names ending with:
The compiled Python bytecode is stored in files which have their names ending with:

  • py
  • pyc
  • pc
  • pyb

Explanation: During the first import of a module, Python translates its source code into a semi-compiled format stored inside the pyc files, and deploys these files into the __pycache__ directory located in the module’s home directory.

More Questions: Python Essentials 2 (PE2) Course Final Test