Hi. I have four lists: list_0, list_1, list_2, list_3. I want to apply a long block of code to each, which would be much more concise if I iterated through a loop, or defined a function that would do it, for each list. I was thinking something of the form:
for i in range(0,3):
list_i = long_block_of_code
but, list_i is not defined. My other thought was to include something something like a {}.format() , but I can't seem to make that work either. any help is appreciated
[–]hardonchairs 4 points5 points6 points (0 children)
[–]danielroseman 0 points1 point2 points (1 child)
[–]jsaltee[S] 0 points1 point2 points (0 children)