A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/python/introduction-to-python/ below:

Python Introduction - GeeksforGeeks

Python Introduction

Last Updated : 09 Jul, 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.

Hello World Program

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.
"""

To understand comments in detail, refer to article: Comments.

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. The most common convention is to use 4 spaces or a tab, per level of indentation.

Example:

Python
print("I have no indentation")

    print("I have tab indentaion")

Output:

Hangup (SIGHUP)
File "/home/guest/sandbox/Solution.py", line 3
print("I have tab indentaion")
IndentationError: unexpected indent

Explanation:

To understand Indentation in detail, refer to article: Indentation.

Famous Application Built using Python What can we do with Python?

Python is used for:


How Python Programs are Executed Python Programming Terminology Python Installation and First Program

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4