Which of the following statements is correct about the execution of Python programs?

Options

  • A. Python source code is always directly executed as machine code
  • B. Python implementations can compile source code into bytecode before execution
  • C. Python does not require any execution environment
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. Python implementations can compile source code into bytecode before execution

Detailed Explanation

In standard CPython, source code is compiled into bytecode, which is executed by the Python virtual machine.