We can create a list of lists and use a for loop to iterate over all of them.
item_1 = 'foo'
list_1 = []
list_2 = []
list_3 = []
Here we create a list of lists (it can be any length):
mylist = [list_1, list_2, list_3]
Next we iterate over all the lists in the main list, one by one.
Each list will be referenced by the target variable (in this case "l") and we can then call .append() on l.
for l in mylist:
l.append(item_1)
To prove this works, we can then examine the main list and individual lists:
print(mylist)
[['foo'], ['foo'], ['foo']]
print(list_1)
['foo']
print(list_2)
['foo']
x_1, x_2, ...of similar type and purpose, you should consider putting them in a list or other collection that allows dealing with them in bulk.y = lambda x: (list_1.append(x), list_2.append(x), list_2.append(x)) y(item_1)