2 Answers
Ok, I will share one example where I will create two objects and one class.
class laptop:
def config(self):
print(“i5, 16gb, 1TB”)
com1 = laptop()
com2 = laptop()
laptop.config(com1)
laptop.config(com2)
com1 and com2 are the two objects. laptop is a class.