r/learnpython • u/Forward-Ride2950 • 25d 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
Show parent comment
2
u/SharkSymphony 24d ago
I think this gets at the nuance. Instances are objects and v/v, but when you say instance you're highlighting the object's relation to some class (typically, the class that was used to create it). When you're talking about objects, you might not care in the moment what classes they're instances of.