45.8k views
2 votes
Np.arange(5,8,1) what output will be produced?

User Swysocki
by
8.4k points

1 Answer

2 votes

Answer: [5 6 7]

Explanation: The np.arange takes in three parameters ->start,stop,step.

Hence, since we our range is 5 to 8, incrementing by 1 until we reach 8, giving us a list -> [5,6,7]

User Muhammad Atif Agha
by
7.7k points