HOW TO INSTALL PYTHON AND EXECUTE PROGRAM?

470 viewsPYTHONPython
0
0
Install and Execute Python
Install and Execute Python

To check if you have python installed on a Windows PC, run the following command on the Command Line (cmd.exe)-

pythonย โ€“version

ย  If you find that you do not have Python installed on your computer, ย  then you can download it from website:ย https://www.python.org/

To execute the program first save the code in the text editor with extension of file as(.py), for example, save python code- print(โ€œHello World!โ€) by text editor in python file namedย helloworld.pyย and run the following command on the Command Line(cmd.exe)-

pythonย helloworld.py

Output:ย Hello World!

Saraswat World Changed status to publish June 14, 2023
Write your answer.

Posted

in

Tags:

Comments

Leave a Reply

Ganesh Ji Arti A Tribute to Dilip Kumar