how to add class attributes using for loop in python code example
Example: python how to create attribute of class while iterating a list
>>> class c(object):
... for i in range(10):
... locals()['A' + str(i)] = i
...
>>> c.A0
0
>>> c.A7
7