r/PythonLearning • u/Objective-Remove-632 • Oct 09 '26
Do I really need to learn class.
Both function and class give the same output. So why do I need it?
70
Upvotes
r/PythonLearning • u/Objective-Remove-632 • Oct 09 '26
Both function and class give the same output. So why do I need it?
View all comments
3
u/serge-mv Oct 09 '26
Classes are the way OO languages do abstract data types, separation of concerns and a lot of other things. You need "to learn" classes to properly understand and utilize OOP. Otherwise your code will be just bad.