Python · OOP: Properties, Methods & Data Classes
What does this print? ``` @dataclass class Bag: xs: list = field( default_factory=list) a = Bag(); b = Bag() a.xs.append(1) print(b.xs) ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
