Python Introduction

Last Updated : 25 Mar, 2026

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

  • Allows writing programs with fewer lines of code, improving readability.
  • Automatically detects variable types at runtime, eliminating the need for explicit declarations.
  • Used in web development, data analysis, automation, and many other fields.
  • Supports object-oriented, functional, and procedural programming styles.
  • Dynamically typed and has automatic garbage collection.

Understanding Hello World Program in Python

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

Output
Hello, World!

How does this work:

print-hello-world
  • print() is a built-in Python function that instructs the computer to display text on the screen.
  • "Hello, World!" is a string, which is a sequence of text. In Python, strings are enclosed in quotes (either single ' or double ").
  • The scope of code blocks is defined using Indentation in Python (spaces or tabs). This is different from C, C++ and Java which us braces {} to create a block of code.
Comment
Article Tags: