0% found this document useful (0 votes)
14 views

Python - Hello World Program

The document discusses writing a Hello World program in Python. It explains that Python programs can be written in a text editor and saved with a .py extension. The program prints "Hello World" to output using the print function. It is a simple introduction to writing and running Python code.

Uploaded by

Daniel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Python - Hello World Program

The document discusses writing a Hello World program in Python. It explains that Python programs can be written in a text editor and saved with a .py extension. The program prints "Hello World" to output using the print function. It is a simple introduction to writing and running Python code.

Uploaded by

Daniel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like