❮ Previous Next ❯

How to save and run python program(.py file)

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


save and run python program1

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
300
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


save and run python program2.PNG

After pressing enter then we will exit from the python program.  


❮ Previous Next ❯

Follow Us




  Tutorials

Popular Links

Contact Us

address Plot No-741,2ND Floor
Opp. Bhagabati Temple,Jayadev Vihar
      Bhubaneswar-751013
      Email: info@silantechnology.com
      Phone: 0674-2361252
address
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved