Course map
Stage 1: Foundation
Stage 2: Intermediate
Stage 3: Advanced
Stage 4: DSA in Python
Stage 5: Specialization

Part 01 / Topic 1 of 7

What Python is

Python is a high-level, general-purpose programming language.

  • High-level means you write in words close to English, not in the 0s and 1s the computer uses.
  • General-purpose means it is not tied to one job: websites, data, games and scripts all work.

It is great for beginners, and big companies also use it for real work.

A little history. Guido van Rossum created Python at CWI, a research centre in the Netherlands. He started it as a personal project over the 1989 Christmas holidays and posted the first public release in February 1991, after just over a year of development. The name has nothing to do with the snake — he was reading the scripts of Monty Python's Flying Circus at the time and wanted a name that was short, unique and slightly mysterious.

Real-world example: Instagram's backend, YouTube scripts, Netflix data tools and many AI models use Python.

Area What Python does there Popular tools
Web development Builds websites and APIs Django, Flask, FastAPI
Data and AI Cleans data, trains models pandas, NumPy, PyTorch
Automation Renames files, sends emails, fills sheets stdlib, pathlib, smtplib
Testing / DevOps Writes test scripts, deploy scripts pytest, Ansible
# Python code is short and readable
city = "Pune"                # a variable: a name for a value (more in Part 2)
print("Hello from", city)
# Hello from Pune

Why people pick Python (the features):

Feature What it means for you
Simple, readable syntax Code reads close to English, so there is less to memorise
Interpreted Run a file straight away — no separate compile step to wait for
Dynamically typed A name can hold any type; Python checks types while the program runs
Batteries included The standard library ships JSON, CSV, HTTP, SQLite and more
Huge ecosystem pip installs hundreds of thousands of packages (Django, pandas, PyTorch)
Cross-platform The same .py file runs on Windows, macOS and Linux
Grows with you Start with simple scripts, add functions (Part 5) and classes (Stage 2) later

Your first program: Hello, World!

print("Hello, World!")
# Hello, World!

How does this work? You write the code in a file, the interpreter runs it, and the result appears on your screen:

  you write              Python runs it           you see
┌──────────────────┐   ┌──────────────────┐   ┌──────────────────┐
│ hello.py         │   │ the interpreter  │   │ Hello, World!    │
│ print("Hello,    │──▶│ reads your file  │──▶│                  │
│ World!")         │   │ line by line     │   │                  │
└──────────────────┘   └──────────────────┘   └──────────────────┘
  • print(...) is a function: you hand it a value, it shows that value on the screen.
  • "Hello, World!" is a string (text). The quotes mark where it starts and ends.
  • The interpreter is the program doing the work — section 5 opens it up.

Don't worry about running it yet: section 4 shows both ways (REPL and script).

🔍 Going deeper: Python is dynamically typed (a name can hold any type, checked while the program runs) and interpreted by a program called the interpreter. It trades some raw speed for fast writing; heavy maths libraries like NumPy run their inner loops in C.

🧪 Quick quiz — answer from memory, then check.

  1. Python is only for websites — true or false?
  2. What does print("Hello, World!") show on the screen?
  3. Name two real companies or products that use Python.
Show the answers
  1. False. Python also powers data and AI work, automation, and testing/DevOps (see the table above).
  2. Hello, World! — the text appears without its quotes.
  3. Any two of: Instagram's backend, YouTube scripts, Netflix data tools.

Read more: Python's own FAQ tells the history in the project's own words.

Done here? The practice set for Part 1 — 6 exercises with solutions — is on the part page.

Search the guide