Python Introduction (original) (raw)

Last Updated : 03 May, 2025

Python was created by Guido van Rossum in 1991 and further developed by the Python Software Foundation. It was designed with focus on code readability and its syntax allows us to express concepts in fewer lines of code.

**Key Features of Python

**Understanding Hello World Program in Python

Hello, World! in python is the first python program which we learn when we start learning any program. It’s a simple program that displays the message “Hello, World!” on the screen.

**Here’s the “Hello World” program:

Python `

This is a comment. It will not be executed.

print("Hello, World!")

`

**How does this work:

We can also write multi-line comments using triple quotes:

Python `

""" This is a multi-line comment. It can be used to describe larger sections of code. """

`

**Indentation in Python

In Python, Indentation is used to define blocks of code. It tells the Python interpreter that a group of statements belongs to a specific block. All statements with the same level of indentation are considered part of the same block. Indentation is achieved using whitespace (spaces or tabs) at the beginning of each line.

**Example:

Python `

if 10 > 5: print("This is true!") print("I am tab indentation")

print("I have no indentation")

`

**Explanation:

**Famous Application Built using Python

**What can we do with Python?

Python is used for: