r/learnpython • • Feb 23 '21

Classes. Please explain like I’m 5.

What exactly do they do? Why are they important? When do you know to use one? I’ve been learning for a few months, and it seems like, I just can’t wrap my head around this. I feel like it’s not as complicated as I’m making it, in my own mind. Thanks.

229 Upvotes

71 comments sorted by

View all comments

Show parent comment

1

u/collector_of_hobbies Feb 24 '21

Doesn't even have to have a real world analog, although most examples are written that way. Even with highly abstract ideas, can help organize the data and manipulation of the data.

But yes, agree with above comment.