I have several arrays:
foo_1 = [URL, 2, 30]
foo_2 = [URL, 4, 1230]
foo_3 = [URL, 11, 980]
foo_4 = [URL, 6, 316]
... I want to create a function that creates variables and renames them like so:
foo_1Count = foo_1[2]
foo_2Count = foo_2[2]
foo_3Count = foo_3[2]
foo_4Count = foo_4[2]
I am dealing with a very large set of arrays so creating the variables as such one by one isn't easy. I don't want to use a dictionary if I can help it. Is there a way to use .format() to create a variable name or something simple that I am missing? Thanks!