Leek Leek - 1 year ago 70
Python Question

Python make it do this

How would I be able to do this,

for i in range(10):
globals()["Var_"+str(i)] = i**2

will print 25, obv

But I be able to do this


Answer Source

You will have evaluate the variable

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download