#python
Study materials by tag "python" from expert practitioners. Current articles and useful tips for development.
Articles with tag "#python"
All materials on the topic python
reduce() โ Fold Everything into One! ๐ฝ
reduce() folds a list down to a single value by applying a function sequentially.
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 ๐
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.
Similar tags
Study related topics
Looking for more on the topic?
Study all our materials or subscribe to updates