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.
Loading...
Related Quiz
- How would you ensure that a piece of code in a module is only executed when the module is run as a standalone program and not when it is imported?
- To define a generator, you use the ____ keyword in the function definition.
- What's the primary benefit of using tuples as keys in dictionaries over lists?
- Which Python module is commonly used for writing unit tests?
- If you want to overload the less than (<) operator for a class, you will define the _______ method in your class.