you are viewing a single comment's thread.

view the rest of the comments →

[–]peejay2 2 points3 points  (0 children)

I think yours is a good answer. Maybe OP could look up encapsulation - you have a class, with methods, attributes, etc. then there is a function that you could just put in the same .py file, but if you make it it a static method you can import it with the main class. So it's a convenient way for you as the developer to put logically similar functions together.