HELLO WORLD IN PYTHON PROGRAMMING
In this tutorial, you will learn step by step examples for creating a hello world python program in windows OS using two ways. They are
- Using Manual Way (Through Notepad and CMD)
- This is based on windows notepad and CMD window.
- First open notepad and write basic code then save your file in any location of your computer with .py extension
- Start the CMD window and navigate to your current path, then type python filename to execute your file.
- Using Automated Way (Through IDE)
- This is based on visual studio IDE. Install visual studio IDE on your computer and follow the instructions mentioned below in the example program II.
Using Manual way
I. EXAMPLE OF HELLO WORLD PROGRAM
(test.py)
1. SOURCE CODE
print (“Hello World”)
2. OUTPUT
Execution Steps
USING IDE
II. EXAMPLE OF HELLO WORLD PROGRAM
(PythonHello.py)
STARTING VISUAL STUDIO IDE
STEP 1: PROJECT CREATION IN VISUAL STUDIO (2019)
STEP 2: PROJECT CONFIGURATION – SETTING PROJECT NAME AND ITS LOCATION
PROJECT DETAILS IN VISUAL STUDIO
1. SOURCE CODE
# print hello world
def disp():
print(“Hello World”)
# calling function
disp()
2. OUTPUT
2.1 SELECT “START WITHOUT DEBUGGING” OPTION FROM DEBUG MENU AND RUN THE APPLICATION
2.2 RESULT