Articles
The shelter has its foundation. Time to complete it — edit health, register adoption, activity report.
Edit health
def edit_health(self):
available = {id: a f…
OOP introduces new ways to think about code. It also introduces new ways to get it wrong. These are the most common mistakes — and what to do instead.
1. Forgetting self
c…
You've covered the full OOP landscape. Before moving on, here's everything in one place.
// Class and object
class Animal:
def __init__(self, name, species, age):
…
Napoleon Bonaparte was arguably the greatest military mind in history. He reformed armies, rewrote tactics, and built an empire that stretched from Lisbon to Warsaw. He understood…
Two classes. One system.
Task — knows its own data. Title, priority, status, deadline, timestamp.
TaskList — owns the tasks. Adds them, saves them, loads them, displ…
The foundation is solid. Tasks are added, saved, loaded, displayed.
Round 2 completes the system — show by deadline, update status, filter, delete, export report.
Update t…