Which file extension is commonly used for a compiled Python bytecode file?

Options

  • A. .py
  • B. .exe
  • C. .pyc
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. .pyc

Detailed Explanation

Python bytecode files commonly use the .pyc extension and are generally stored in __pycache__ directories.