// resources
Resources
All
|
Cheatsheet
Code Example
Exercise
Template
Other
Achievement
|
Basics
Control Flow
Functions
Data Structures
Modules & Packages
Projects
Object-oriented programming
|
↑ oldest first
↓ newest first
// Other
safe_paws.txt
Shelter data — 25 animals, 5 already adopted. Dummy data for testing. Delete when done.
// Exercise
safe_paws.py
Safe Paws. Complete shelter management: add, search, edit, adopt, activity report. Two files, two dictionaries, one for…
// Other
safe_paws.txt
Shelter data — 25 animals, 5 adopted. Dummy data for testing. Delete when done.
// Other
adopted_paws.txt
Adoption records — 5 entries. Dummy data for testing. Delete when done.
// Exercise
adfgvx_encoder.py
ADFGVX Encoder — Round 3. Two validated keys, substitution dictionary, character-by-character transposition, export to …
// Exercise
adfgvx_decoder.py
ADFGVX Decoder — load coded message by date, reverse transposition, reverse substitution, export decoded result. Use wi…
// Other
coded_2025_04_07.txt
Dummy coded message. Message: ATTACK AT DAWN. Use date 2025_04_07 at decoder input. Decoder asks for transposition key …
// Code Example
oop_classes_objects.py
Classes and Objects — blueprint, constructor, self, methods. The foundation of OOP in one file.
// Code Example
oop_attributes_methods.py
Attributes and Methods — instance vs class attributes, default values, methods that read, modify, and return. Everythin…
// Code Example
oop_self.py
Understanding self — what it is, why it exists, how Python passes it automatically, and how it connects data and method…
// Code Example
oop_encapsulation.py
Encapsulation — private attributes, getters, setters, validation inside the object. The object enforces its own rules.
// Code Example
oop_inheritance.py
Inheritance — parent class, child class, super(), method overriding. Write shared logic once, inherit everywhere.
// Code Example
oop_polymorphism.py
Polymorphism — same method call, different behavior per class. One loop, no isinstance() checks, new classes without ch…
// Code Example
oop_special_methods.py
Special Methods — str, repr, len, eq, contains. Make your objects work with print(), len(), ==, and in.
// Exercise
calories_tracker_oop.py
Calories Tracker — OOP version. Same logic, new structure. CalorieTracker class with user parameter, independent files …