0 votes
by (120 points)
How do I run a Python script from the shell?

1 Answer

0 votes
by (1.5k points)
Using the python Command

To run Python scripts with the python command, you need to open a command-line and type in the word python , or python3 if you have both versions, followed by the path to your script, just like this: $ python3 hello.py Hello World!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked May 27, 2021 by python (700 points)
0 votes
1 answer
asked Jun 22, 2021 by python (700 points)
0 votes
1 answer
asked Jun 13, 2021 by python (700 points)
...