To execute a Python script, which of the following commands can be used?

  • execute script.py
  • python script.py
  • run script.py
  • start script.py
To execute a Python script, you can use the command python script.py. This command runs the Python interpreter and executes the script specified after python. It's the standard way to execute Python scripts from the command line or terminal.
Add your answer
Loading...

Leave a comment

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