np.array sequence from 1 to 100 in python code example Example: python array from 1 to n nList = list(range(1, n+1))