Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 44)
44.
What does the NumPy function numpy.linspace(1, 10, 5) do?
Creates an array with values ranging from 1 to 10 with a step of 5.
Generates a sequence of 5 evenly spaced values between 1 and 10.
Reshapes an existing array to have dimensions 1x10.
Computes the logarithm of each element in the array.
Answer: Option
Explanation:
The numpy.linspace() function generates a sequence of 5 evenly spaced values between 1 and 10.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.