Introduction to Python

Last Updated: 30 Sep, 2026

What Is Python? 

Python is a general-purpose, high-level, interpreted programming language designed to be highly readable. It was created by Guido van Rossum between 1985 and 1990 and first released in 1991. Python is used for web development (server-side), software development, mathematics and system scripting, and it is one of the easiest languages for beginners to learn.

What Is Python in Simple Words?

In simple words, Python is a language you use to give instructions to a computer, written in something close to plain English. Python uses English keywords where other languages use punctuation, and it has fewer syntactical constructions than most other languages.

Definition: Python is a general-purpose, interpreted, interactive, object-oriented, high-level programming language.

In computing, “Python” refers both to the language itself (its rules and syntax) and to the Python interpreter, the program on your computer that reads .py files and executes them. “Python coding” simply means writing instructions in this language.

Who Created Python, and When Was It Released?

Python was created and developed by Guido van Rossum. He worked on it between 1985 and 1990, and Python was released publicly in 1991.

  • Late 1980s: Guido van Rossum begins designing Python.
  • 1991: First public release of Python.
  • 2000: Python 2.0 released.
  • 2008: Python 3.0 released, a deliberately non-backward-compatible cleanup of the language.
  • 2020: Python 2 officially reaches end of life; all new work uses Python 3.

Why Is It Called Python?

Python is not named after the snake. Guido van Rossum named it after the British comedy series Monty Python’s Flying Circus, because he wanted a name that was short, unique and slightly playful. The snake logo came later.

What Type of Language Is Python?

  • High-level:you write human-readable code; Python handles memory and hardware details for you.
  • Interpreted:Python is processed at runtime by the interpreter, so you do not compile your program before running it (similar to Perl and PHP).
  • Interactive:you can sit at a Python prompt and type code directly into the interpreter.
  • Object-oriented:Python supports object-oriented programming, which encapsulates code within objects.
  • Scripting language:Python is widely used for system scripting, meaning short programs that automate tasks.
  • Multi-paradigm:Python can be written in a procedural way, an object-oriented way, or a functional way.

Is Python interpreted or compiled? Technically both: CPython (the standard interpreter) first compiles your source code into bytecode (.pyc files), then the Python Virtual Machine interprets that bytecode line by line. Because there is no separate compile step for you, Python is described as an interpreted language.

Python is called a high-level language because its syntax is far from machine code: you write print(“Hello”) rather than managing registers or memory addresses.

What Are the Key Features of Python?

Feature What it means in practice
Readable, English-like syntax Uses new lines to end a command and indentation (whitespace) to define blocks, instead of semicolons and curly brackets
Fewer lines of code Programs are typically shorter than equivalents in Java or C++
Interpreted Code runs as soon as it is written, so prototyping is very quick
Cross-platform Runs on Windows, Mac, Linux, Raspberry Pi and more
Free to download Available at no cost from python.org
Multi-paradigm Supports procedural, object-oriented and functional styles

What Is Python Used For?

  • Web development (server-side):Python runs on a server to create web applications.
  • Software development and workflows:Python can be used alongside other software to create workflows.
  • Databases and files:Python connects to database systems and can read and modify files.
  • Data and mathematics:Python handles big data and performs complex mathematics.
  • System scripting and automation:from rapid prototypes to production-ready software.

In today’s job market, this translates into roles in data analysis (pandas, NumPy), machine learning and AI (scikit-learn, TensorFlow, PyTorch), web back-ends (Django, Flask, FastAPI), automation/scripting (file handling, web scraping, email automation) and testing.

Why Use Python? Is Python Easy to Learn?

Python is considered a beginner’s language: its syntax is similar to English, programs need fewer lines than in many other languages, and code runs immediately without a compile step. It still supports serious applications, from simple text processing to web browsers and games.

For most beginners, Python is not hard to learn. The basics (variables, loops, functions) can be picked up in a few weeks; the harder part is practice and building projects. Whether it is the “best” first language depends on your goal: Python is the usual choice for data, AI and automation, JavaScript for front-end web development, and Java/Kotlin for Android apps.

How to Write and Run Your First Python Program

Part 2 — Tutorial

In this tutorial you will write a one-line Python program, save it as helloworld.py, run it from the command line, and then run the same code in the interactive Python shell. It takes about 10 minutes and 5 steps, using nothing but a text editor and your computer’s terminal.

Prerequisites

  • Python 3 installed (many PCs and Macs already have it; otherwise download it free from python.org).
  • A text editor such as Notepad, VS Code or IDLE.
  • Basic familiarity with opening Command Prompt (Windows) or Terminal (Mac/Linux).

Steps

Step 1: Create a new file named helloworld.py

Open any text editor and save an empty file with the .py extension. The extension tells your system and the interpreter that this is Python source code.

Step 2: Write your first line of code

Type the following and save the file.

print(“Hello, World!”)

Step 3: Run the file from the command line

Open your command line, navigate to the folder where you saved the file, and run it. The output should read Hello, World!

C:\Users\YourName> python helloworld.py

Hello, World!

Step 4: Try the interactive Python shell

Type python on its own to open the shell, then type code at the >>> prompt. The result appears immediately.

C:\Users\YourName> python

>>> print(“Hello, World!”)

Hello, World!

Step 5: Exit the shell

When you are done, type exit() to return to the normal command line.