I want to create variable names using for loop in python,
I tried the code below:
for i in range(5):
var+str(i)=i
print(var+str)
but it returns a error:
File "<stdin>", line 2
SyntaxError: cannot assign to operator
Can Anyone help me this that where i go wrong or there is any other method for this?