Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 61)
61.
What is the result of the expression np.linspace(0, 1, 5, endpoint=False)?
[0.0, 0.2, 0.4, 0.6, 0.8]
[0.0, 0.25, 0.5, 0.75, 1.0]
[0.0, 0.1, 0.2, 0.3, 0.4]
[0.0, 0.2, 0.4, 0.6, 0.8, 1.0]
Answer: Option
Explanation:
The expression generates an array with values from 0.0 to 1.0 (exclusive) with a step of 0.2 and excludes the endpoint.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.