Instance

say it: “IN-stunss” /ˈɪnstəns/

One object made from a class, with its own data.

What is an instance?

An instance is one object made from a class. Each instance has its own data.

class Car:
    def __init__(self, color):
        self.color = color

my_car = Car("red")      # one instance
your_car = Car("blue")   # another
print(my_car.color)      # red

Level: Journeyman · More Python terms at this level

Updated

In other subjects