r/learnpython
•
u/Current-Vegetable830
•
Jan 13 '26
•
1
I cannot understand Classes and Objects clearly and logically
75
Upvotes
r/learnpython
•
u/Current-Vegetable830
•
Jan 13 '26
•
1
141
u/vivek_seth Jan 13 '26
In programming there is data (numbers, strings, arrays, etc), and there is logic (functions). With these two concepts you can build any program you want.
Sometimes for organization purposes it makes sense to group up some data and functions together into one entity. That’s what classes are for. Classes are collections of data (properties) and logic (methods)
Does that help?