Python
Articles about Python
Category articles "Python"
Study all materials on this topic
CSV: Working with Tables 📊
Goal: Learn to read and write tabular data in CSV format.
Pure Functions — Clean and Predictable! 🧼
A pure function is a function that: Always returns the same result for the same arguments Has no side effects...
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 — Build Your Own LEGO! 🧩
Function Composition is the practice of combining simple functions into more complex ones.
Try/Except: Taming Errors ❗
Goal: Learn to handle exceptions and write robust programs.
The `__str__` Method: Beautiful Object Output 🎨
Imagine: you print a zombie to the console and see: <main.Zombie object at 0x10e8c4d90> 😱
Class Methods: Bringing Objects to Life! ⚡
A class without methods is like a zombie without a brain: it exists but does nothing. 🧟
Creating Classes: `__init__` and the Mystery of `self` 🏗️
You know what OOP is. Now let's create our first class and demystify two of Python's main puzzles:
`with open`: The Right Way to Work with Files 💾
A game without saves is like a zombie apocalypse without a shelter: 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.
Lists in Python: A Collection of Data 📦
Imagine you have a spaceport and need to store the names of all the planets for a flight. You could...
if-else in Python: Making Your Program Smarter 🤔
Conditionals let a program make decisions! Different actions depending on the situation.
Other categories
Study related topics
Want more materials?
Subscribe to updates and be the first to know about new articles!