I need to create a list from 1 to n numbers in a uniform interval.For example, the length of the list is 6 and I need with an interval of 2,it needs to create 6 numbers in uniform intervals. the interval and size of list are dynamic values.
l=[1,3,5,7,9,11]
I tried np.arange() and np.linespace() but they don't accomplish what I need.I am wondering whether there is any function to do this