I\'ve been wondering if there is a way to use an iterator as a variable name in a Python loop. For example, if I wanted to create objects v0, v1,
v0
v1
I prefer xrange() to range(). Here the code for you:
for i in xrange(3): exec("v"+str(i)+" = i * i")
Even if... you should consider using a list