Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 50)
50.
What is the output of the code np.arange(2, 10, 2)?
[2, 4, 6, 8]
[2, 4, 8]
[2, 6]
[2, 4, 8, 10]
Answer: Option
Explanation:
The code generates an array with values from 2 to 10 (exclusive) with a step of 2.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.