contoh objek

First know difference between instance, object and class.

As python is object oriented programming language, almost every thing is object in python.

And, class are like blueprints.

Now, imagine objects as instance of a class. Meaning we can create objects from class.

So, objects and instance are same thing. Just the word instance represents an object relation to the class.

EG:
Fruit class has apple, banana objects
Veg class has tomato, cauliflower objects

Hence you can say:
Apple and tomato are objects but:
Tomato isn't instance of Fruit class while,
Apple is instance of Fruit class
Suraj Kr Thapa