Loading...
Create NumPy arrays with sequential or evenly spaced values.
Write a function create_ranges(start, stop, num_points) that returns a dictionary with:
Round linspace values to 2 decimal places.
Return a dictionary with exactly these two keys.
start = 0, stop = 5, num_points = 5
{'arange': [0, 1, 2, 3, 4], 'linspace': [0.0, 1.25, 2.5, 3.75, 5.0]}arange gives [0,1,2,3,4], linspace gives 5 points from 0 to 5