r/learnpython • u/Forward-Ride2950 • 18d ago
Trying to understand Class, Object, Instance, and self in Python. Is my understanding correct?
I'm currently learning OOP in Python and wrote down some questions regarding object and instance for following code
=
= ```
1) is ?
:- is
2) is ?
:- is and is
3) ?
:- is in is and
pass
50
Upvotes
View all comments
3
u/Discordbothost 18d ago
yeah youve basically got it. in python people use object and instance as the same thing — car1 is both. class = blueprint, car1 = one car built from it, self inside a method just means "this particular car". the only wrinkle is every value in python is an object (even 3 and "hi"), so "object" also gets used more loosely outside OOP talk.