Let's say I need to make 5 variables. Since this may need to be adjusted in the future, I'm using a loop.
i = 0
for j in range(5):
i += 1
w[i] = function(i)
#results in:
w1 = function(1)
w2 = function(2)
#etc...
I know the code above is incorrect. Is it possible to use a loop to create different variables?