I was wondering if there is a nice way to use a loop in order to create and assign variables. I usually catch the objects in a list, but it would be nice to access each by a variable name. For example I want to automatically create several machine learning models with different parameters and assign each model to variable model_1,model_2 and so on. something that could look like this:
for i,parameter in enum(list_of_parameters):
model_ + i = model_generator_function(parameter)
Thanks for your help!