0

My code produces and appends a list with objects from a class in a for loop. I need to make several lists each with unique names. To achieve this I am trying to use variable values, without assigning the parent variable, while not creating a list. EX.

x = list1                   
# (the value of X or list1)
(list1).append(value)

The goal is use the value of x to make a list, not

x.append(value)

but

list1.append(value)

I hope I've described my question well enough.

0 Answers0