Category articles "Python"
Study all materials on this topic
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
A class defines an object's data and behavior, while init establishes its initial state.
with open: Working with Files the Right Way
Files preserve data between program runs, while the with statement ensures that a file is closed correctly even when an...
Data Pipelines — The Processing Conveyor
A data pipeline splits a complex transformation into small stages and passes each stage's output to the next one.
if-else in Python: Making Your Program Smarter 🤔
Conditionals let a program make decisions! Different actions depending on the situation.
Lists and Dictionaries in Python
Problem: Want to store 100 students → 100 variables? Solution: collections.
The while Loop: Repeat While a Condition Holds 🔁
The for loop works great when you know how many times to repeat an action. But what if you don't?
Controlling Time and Randomness in Python ⏱️🎲
Sometimes code runs too fast (all the text dumps on screen in a fraction of a second), or you need...
Math Operations in Python 🧮
Python is a great calculator! Let's cover all the arithmetic operators with examples.
Python f-Strings: Insert Values into Text 🪄
An f-string lets you build readable text from words, variables, and expressions. It is useful for greetings, game results, program...
Python Data Types: A Complete Guide 🎯
Python can work with different types of data: numbers, text, boolean values. Let's cover all the fundamental types!
Other categories
Study related topics
Want more materials?
Subscribe to updates and be the first to know about new articles!