import numpy as np def my_linspace(start, stop): antall = 50 dx = (stop-start)/(antall-1) x1 = start arr = np.zeros(antall) for i in range(0, antall): arr[i] = x1 x1 = x1+dx return(arr) print('fasit =', np.linspace(1, 7)) print('my_linspace =', my_linspace(1, 7))