I just finished the first stage of the Python Object Oriented Programming subject in the Computing Science course. While I think I have grasped how to do it, I still have a bit of trouble envisioning when it is preferable to use classes over merely using functions that do what you want your script to do. Both are done when you need to do something repeatedly, but other than that the reasoning for when to use each remained unclear. Could somebody please provide a concrete example of when using a class is objectively more efficient than calling a regular function to do something? It all still seems too abstract to me.
Thanks in advance!