First Python program
Assuming that you have installed and set up python Environment on your computer,
Example – first python program
To run your python program, follow the below mentioned steps:
- Save the file with .py extension (Eg: mypython.py).
Commandprompt and navigate to the folder where your program is saved.
- Type the following command – python mypython.py