I'm teaching a 12 year old girl Python and want a tutorial to show best practices for separation of concerns, encapsulation , use of functions and classes. Most articles I've seen deal with theoretical recommendations. I want a step-by-step tutorial that is almost all code snippets and not very much text other than the code snippets. I'm looking for things like, put libraries in /lib, when to use from libname import function, when to create a class verses function. As this is for a 12 year old girl, I don't want a long essay on object oriented design, just a set of examples on what's a good way to do things. any help finding these types of tutorials for Python would be great. She's using Pygame
I searched for "python encapsulation" and got this if you are interested: <a href="https://pythonspot.com/en/encapsulation/" rel="nofollow">https://pythonspot.com/en/encapsulation/</a>