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
8
u/[deleted] Feb 23 '21 edited Feb 24 '21
what is "self" doing as an argument? I'm familiar with arguments but I'm just starting to grasp classes and am struggling with why self as an argument then gets used as self.type, self.balance, etc etc.
Any help is appreciated!
Edit: y’all are so fucking helpful damn! Thanks everyone