Arange

Course Name: Options Trading Strategies In Python: Intermediate, Section No: 4, Unit No: 5, Unit type: Notebook



could you pls clarify this code line here:

sT = np.arange(0.92nifty_nov_fut,1.1nifty_nov_fut,1) 



nifty_*_fut are just assumptions (imho)

why is the first one discounted by 8% and the second one is incremented by 10% ?



is this just to be sure to have all the relevant data points, needed to plot the graph, in the range ?

thx

Hi Gian,



Yes, you are correct! arange function returns an evenly spaced values within the defined interval and that is used to plot the graph.



Hope this helps!