← Code LabPython0/50 solved · 0%
OOP · easy

16. Classes and __init__

Bundle state and behavior.

Write class `Wallet` with `__init__(self, address, balance=0)` and a `deposit(self, amount)` method that increases `self.balance`.
Required in your answer: class Walletdef __init__def deposit