I made automatically named variables by looping them - using for-loop - , like below
for i in range(10):
global()['variables_{}'.format(i)]=i
there is "s" at the end of global but this site doesn't allow it.
i can't get value of variables when i try to call it automatically by using for loop like below
for i in range(10):
print('variables_{}'.format(i))
code above outcome is not a 0,1,2,3... but variables_0,variables_1, variables_2 ... i want to get 0,1,2,3 (the value of variables_i)