I want to create an object that contains some instances of a class. That object should be some kind of list-generalization of the instances. E.g. I have the following class:
class car:
def __init__(self, prize, color)
self.prize = prize
self.color = color
Now I want to have an object cars
that contains many instances of the class car but that I can work with like an instance of car, i.e. cars.prize
should return a list of the prizes for all the instances I collected in that object cars
.