How to assign to a variable a variable name to get the value of the variable? This works
a=1
b=a
it outputs a if you usedprint(b)
you will get 1.But if i used this,
for i in range (0,a1,2):
r=i/2
e[r] ='c%s'%i
print(e[r])
(c0, c2, c4,... has a value)
then it will output c0, c2, c4...
How can i make it output the value of c0,c2,c4...?
I tried changing the ''
to" "
but it still don't work.