Python Introduction

Last Updated : 21 Oct, 2026

Python is a high-level programming language known for its simple and readable syntax. It has the following features:

  • Requires fewer lines of code compared to other programming languages like Java.
  • Supports multiple programming paradigms including object-oriented, functional and procedural programming.
  • Dynamically typed and has automatic garbage collection
  • Widely used in web development, automation, data analysis, artificial intelligence and many other fields.
  • Cross-platform, works on Windows, Mac and Linux without major changes.
  • Used by top tech companies like Google, Netflix and NASA.

Hello World Program

The Hello World program demonstrates the basic structure of a Python program.

Python
# This is a comment. It will not be executed.
print("Hello, World!") 

Output
Hello, World!

How does this work:

hello_world
Hello World Program
  • print() is a built-in Python function that instructs the computer to display text on the screen.
  • "Hello, World!" is a string enclosed within quotes (either single ' or double ").
  • Python uses indentation (spaces or tabs) to define code blocks instead of braces {} in C, C++ and Java .
  • # is used to write Python Comments. Comments are ignored during execution.
Comment