What is Python?
What Python is, why it reads the way it does, and where it's actually used.
2 min read
Python is a general-purpose programming language designed to be read almost like plain English. There's no semicolon hunting, no curly braces marking where a block starts and ends — indentation does that job. That readability isn't just a nice-to-have; it's the reason Python shows up everywhere from a ten-line script to a machine learning pipeline running on thousands of servers.
print("Hello, world!")That's a complete, runnable Python program. No imports, no boilerplate, no main function required.
Interpreted, not compiled
Python code runs through an interpreter rather than being compiled into a standalone binary ahead of time. You write a .py file, hand it to the python command, and it executes line by line. This makes the feedback loop fast — change a line, run the file, see the result — at the cost of some raw execution speed compared to compiled languages like C++ or Rust. For the vast majority of real-world tasks (web backends, automation, data analysis), that trade-off is well worth it.
Dynamically typed
You don't declare a variable's type up front:
name = "Ada"
name = 42Both lines are valid. Python figures out the type from the value at runtime, and a variable can be reassigned to a different type entirely. This makes Python fast to write and forgiving to experiment in, though it also means type-related mistakes surface when the code runs rather than before — a trade-off that later lessons on type conversion and error handling will help you manage.
Where Python is actually used
Python's reputation as a "beginner language" undersells it. In practice it's a serious, production-grade tool across several domains:
- Web backends — frameworks like Django, FastAPI, and Flask power APIs and full sites (covered later in this course).
- Data science and machine learning — libraries like pandas, NumPy, and PyTorch make Python the default language for data work.
- Automation and scripting — quick scripts to rename files, scrape a page, or glue two systems together.
- DevOps and tooling — much of the infrastructure tooling you rely on daily is itself written in Python.
Why the design choices matter
Python's creator, Guido van Rossum, prioritized readability as a core design goal, summarized in the language's own guiding philosophy (import this in any Python shell prints it): "Readability counts." That shows up in small ways throughout the language — one obvious way to do most things, English-like keywords (and, or, not instead of &&, ||, !), and a standard library that favors clarity over cleverness.
The rest of this course builds from a single printed line up through functions, classes, and the tools you'll use to structure a real Python project.
Test what you just learned
4 quick questions. Get all of them right to unlock the next lesson.
You can take the quiz without an account — logging in just lets your result count toward your progress.