python create array from 1 to n by step code example
Example 1: array of 1 to 100 python
myList = list(range(1, 101))
Example 2: python array from 1 to n
nList = list(range(1, n+1))
myList = list(range(1, 101))
nList = list(range(1, n+1))