Python
Articles about Python
Category articles "Python"
Study all materials on this topic
List Comprehensions — Elegant Lists
A list comprehension is a way to build a list in one line instead of a loop.
CSV: Working with Tables
CSV (Comma-Separated Values) is a text format for storing tabular data. It opens in Excel and Google Sheets and is...
Pure Functions
The key rule: pass state through arguments, return new data, never modify existing data. Isolate impure operations (I/O, database, network)...
OOP: Program Like a World Builder 🌍
Imagine: you're building a zombie-apocalypse game. You need zombies, humans, weapons. Every zombie has a name, health points, and can...
Function Composition
In math: (f ∘ g)(x) = f(g(x)) — first g, then f.
Achievements System in Python
Gamification increases user engagement by 30–40%. Achievements are a simple way to implement it.
Try/Except: Error Handling
Goal: Learn to handle errors and make programs reliable.
The `__str__` Method: Beautiful Object Output
You print an object to the console and see: <main.Zombie object at 0x10e8c4d90>. Useless!
Class Methods: Bringing Objects to Life
A method is a function that belongs to an object.
Creating Classes: `__init__` and `self`
init is called automatically when an object is created. Analogy: when a baby is born, it's immediately given a name...
`with open`: Working with Files the Right Way
Data in variables only lives while the program runs. When it closes — everything is lost.
Data Pipelines — The Processing Conveyor
A Data Pipeline is a sequential chain of functions where the output of one becomes the input of the next.
Other categories
Study related topics
Want more materials?
Subscribe to updates and be the first to know about new articles!