Write a NumPy program to create a vector of length 5 filled with arbitrary integers from 0 to 10
- برمجة بايثون
- 2021-09-10
- mhanasmh00489829403
الأجوبة
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]
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال