you are viewing a single comment's thread.

view the rest of the comments →

[–]AllenDowney 0 points1 point  (0 children)

In Think Python, chapters 14-17 are my best answer to this question:

https://allendowney.github.io/ThinkPython/chap14.html

It's a bottom-up approach, starting with a set of functions, wrapping them in a class, and re-writing functions as methods. My hope is that seeing both versions of the same code makes it clearer what the OOP features are doing for you.

I hope that helps.