Write a NumPy program to create a vector of length 5 filled with arbitrary integers from 0 to 10.
import numpy as np x = np.random.randint(0, 11, 5) print("Vector of length 5 filled with arbitrary integers from 0 to 10:") print(x)
Sample Output:
Vector of length 5 filled with arbitrary integers from 0 to 10: [ 0 10 2 0 6]
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer