r/PythonLearning • • Oct 09 '26

Do I really need to learn class.

Post image

Both function and class give the same output. So why do I need it?

70 Upvotes

50 comments sorted by

View all comments

Show parent comment

1

u/silvertank00 Oct 09 '26

define huge. Its more like a complexity issue: if your program interacts with a bunch of stuff (ipc, serial, ws/http, logging) alongside your business logic then good luck keeping it clean without OO.
Classes are not always needed, but when they are, they cannot be left out without making a mess.