Level 3 โ OOP & File I/O โ Classes, inheritance, files, exceptions, modules, and decorators.
Define classes with attributes and methods, create objects, and use operator overloading.
class BankAccount:
def __init__(self, owner, balance=0):
self.owner = owner
self.balance = float(balance)
def deposit(self, amount):
self.balance += amountClasses are blueprints for custom types. Bundle data and behaviour into reusable objects โ the foundation of OOP.
Complete all tiers to earn up to 1,690 XP and unlock the next chapter.