r/learnpython • u/GingerSkwatch • 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
View all comments
Show parent comment
27
u/[deleted] Feb 23 '21
Yes. It's basically a blueprint for what an object of that type should be and do. And calling the class (as I did to create
jims_accountandomins_account) is how you create objects.