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/hitlerallyliteral Feb 24 '21

And even though it's a blueprint, it might in some cases be worth making a class even if there's only going to be one instance of that object, just for organisation?

1

u/Sasmas1545 Feb 24 '21

Yes, absolutely.