Python- for each for loop iteration, append into a different list
I have a for loop that is taking data and appending it into a list, but
for each iteration of the for loop, I would like it to append into a
different list. Is there any way to do this?
value = []
for i in list:
value.append(i)
but I would like something such as
for i, num in enumerate(list):
value_i.append(num)
How could I go about doing this?
No comments:
Post a Comment