How to Run Python Files in Windows Command Prompt? [Duplicate]
I Want to Run a Python File in My Command Prompt but It Does Nothing. These Are the Screen Shots of My Program I Am Testing with and the Output the Command...
I want to run a python file in my command prompt but it does nothing. These are the screen shots of my program i am testing with and the output the command prompt gives me.
First set path of python
and run python file
python filename.py
command line argument with python
python filename.py command-line argument
First go to the directory where your python script is present by using-
cd path/to/directory
then simply do:
python file_name.py