from array import array tab = array('i', range (1, 11)) for i in range(0, 10): tab[i] = 2*i for value in tab: print (value)