Let’s know how to save a python program and run it to get the output. Let my problem task is to find the max value among three values.
First in Python shell, go to File-> New File, the we will write the code, like
After writing code, now we will save that code in any location.
After saving we will run: To run this code go to Run->then click on Run Module->
==================== RESTART: E:/python programs/test1.py ====================
enter 1st number100
enter 2nd number200
enter 3rd number300
Now we will go the file where we saved. Here I have saved in python programs folder of E: drive. Just right click on that file and open it, u will get the output scenario in command prompt
After pressing enter then we will exit from the python program.