i want to create multiple objects with diferent names at once.
For example
class Car:
def __init__(self, color):
self.color = color
And i need to create n objects when the program first run
car_1 = Car("blue")
car_2 = Car("Red")
#...
car_n = Car("color_n")
Is there a way to do this in python3? All the things i've tried just create one object and change its name or overwhite the objects information o simply fails at running. I can't use exec() or eval()
Thanks
Extra: I need the thing before because i need to store n Client's information whenever i run the program to work with it (that info is stored in a .csv file). Do i need to do the thing i mentioned before or is there another way to deal with this kind of data management?