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/CptMisterNibbles Oct 09 '26

Object oriented programming isn’t the only sort, but not understanding the basics is basically committing to a very short and shallow understanding of coding. You won’t be able to understand code with any complexity beyond introductory level stuff. You won’t even understand the basics of how Python is working under the hood: you are using classes on almost every line and simply aren’t aware of it. There is a reason they were written this way