Python
A general-purpose programming language used to build web services, automate tasks, and work with data. Indentation tells Python which lines belong to the same block of code.
Also known as: питон
What Python is
Python is a general-purpose language: the same language you use to rename a folder full of files can also power an HTTP API. Its standard library includes tools for working with files, dates, JSON, and more. Python uses indentation to group statements, so moving a line left or right can change what the program does, not just how it looks.
What happens when you run it
Python is the language; CPython is its most widely used implementation. When you run a script in CPython, it compiles the source into bytecode, a set of intermediate instructions that the interpreter executes. Calling Python “interpreted” describes how the program is run; it doesn't mean the source skips compilation entirely.
Python is dynamically typed. An object has a type, but a name isn't permanently tied to that type: you can assign an integer to total and later assign it a string. That doesn't make the two interchangeable. If you try to add the string "3" to the integer 2, Python raises a TypeError. Type hints let editors and static checkers flag that kind of mistake before you run the code, but Python doesn't enforce the hints by default.
Example: building an order summary
def paid_order_ids(orders: list[dict]) -> list[int]:
ids = []
for order in orders:
if order["status"] == "paid":
ids.append(order["id"])
return ids
orders = [{"id": 7, "status": "paid"}, {"id": 8, "status": "new"}]
print(paid_order_ids(orders)) # [7]
The function builds a new list without changing the input. The indentation puts append inside the condition and return outside the loop. The list[int] hint says what the function is expected to return; it doesn't validate IDs in incoming records.
Where it fits in a backend
Django bundles common web application tools, including an ORM and an admin interface. FastAPI focuses on building APIs and can use type annotations to validate request data and generate an OpenAPI schema. That validation comes from the framework, not from the language. Python also shows up in background workers, test suites, and scripts that move or transform data.
Common interview topics
Be ready to explain what gets copied. After backup = orders, both names refer to the same list. A shallow copy such as orders.copy() creates a separate outer list but still shares the order dictionaries inside it. Appending to the copy won't change the original list, but editing a shared dictionary will be visible through both.
For backend roles, expect questions about what happens while a request waits on a database or another service. An event loop can run other tasks while a coroutine awaits non-blocking I/O. Marking a function async def does not make an ordinary blocking call yield control, and it doesn't make CPU-heavy work run in parallel.