xxxxxxxxxx
An object belonging to a class. e.g. if you had an Employee class, each
individual employee would be an instance of the Employee class
xxxxxxxxxx
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
# Creating instances
person1 = Person("Alice", 25)
person2 = Person("Bob", 30)