Getting started in Python….Hello World!




Before learning ,syntax and commands one should learn how to install and execute a program through command terminal.
Below are the steps to install python and execute python script on windows .
1.Go to site https://www.python.org/downloads/windows/
2.Search for Windows x86 executable installer.This would be below latest python version.
screenshot-www.python.org-2017-05-25-20-24-07

3.Download the .exe file and install it.
4.Note down the path of folder where python is installed.Update environment variable PATH to include path of folder where python is installed.
5.Open a text file and type the below.
print(‘Hello World!’)
Save the file as HelloWorld.py (py is the extension for python script files)
6.Open up a command terminal and navigate to the folder where HelloWorld.py has been saved.
7.Execute the script by typing the below.
python HelloWorld.py
Output should be : Hello World!
8.Congratulation on the execution of your first python script.

Comments

Popular posts from this blog

Best Phones under ₹25000 to buy in September2021

Best Phones under ₹25000 to buy in 2022

Best Phones under Rs.50000 in August 2021