create array 1 to 10 in python code example
Example 1: array of 1 to 100 python
myList = list(range(1, 101))
Example 2: initialize array of natural numbers python
a = array.array('i',(0 for i in range(0,10)))
myList = list(range(1, 101))
a = array.array('i',(0 for i in range(0,10)))