r/learnpython • u/Forward-Ride2950 • 19d 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
7
u/Beginning-Passion439 19d ago
Yep, that's right. Object and instance are the same thing, "instance" just names the class too, like car1 is an instance of Car.