To compile a Python script to bytecode without executing it, the command used is python -_______ .

  • c
  • compile
  • noexec
  • pyc
To compile a Python script to bytecode without executing it, the command used is python -m py_compile . The -m flag is used to invoke the py_compile module, and is the Python script you want to compile.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *