Data Science – Python Hello World Program
3. PYTHON – HELLO WORLD PROGRAM
Table of Contents
1. Ways to write python program ..................................................................... 2
2. Python program execution steps .................................................................. 2
3. Understanding first python program ............................................................ 2
1|Page 3.PYTHON-HELLO WORLD PROGRAM
Data Science – Python Hello World Program
3. PYTHON – HELLO WORLD PROGRAM
1. Ways to write python program
We can write the python programs in many ways like,
o By using any notepad, Notepad++, Edit plus, IDLE (Integrated
Development Environment), jupyter, PyCharm IDE, Anaconda,
Visual Studio, spyder, atom & etc.
Initially the best practice is, using notepad to write python program.
2. Python program execution steps
Open a new notepad and write python program.
We can save this program with .py or .python extension.
Run or execute the program.
Finally, we will get output.
Program A program to print Hello World
Name demo.py
print("Hello World")
Run py demo.py
Output
Hello World
3. Understanding first python program
print("Hello World"),
o print() is a predefined function in python.
o The purpose of print() is to display the output.
o "Hello World" it is a string in python
o We will learn more about function and string in upcoming
chapters
2|Page 3.PYTHON-HELLO WORLD PROGRAM