Lesson 17: dataclasses — less boilerplate
Ever counted how many lines a constructor, __eq__, and pretty printing take? Python counted — and built a shortcut: @dataclass. One decorator above the class, a list of attributes — and all the boilerplate is written for you. Having understood how it works inside, you've earned the shortcut.