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

24. Inheritance and super()

Extend a base class.

Write `Token` with `__init__(self, symbol)` and `describe(self)` returning `f"Token({symbol})"`. Write `StableCoin(Token)` adding a `peg` and overriding `describe` to append `" pegged to {peg}"`.
Required in your answer: class StableCoin(Token)super()