from array import array tab = array('i', range (1, 11)) for value in tab: print (value)