Write a NumPy program to copy data from a given array to another array
- برمجة بايثون
- 2021-09-13
- mhanasmh00489829403
الأجوبة
import numpy as np
x = np.array([24, 27, 30, 29, 18, 14])
print("Original array:")
print(x)
y = np.empty_like (x)
y[:] = x
print("\nCopy of the said array:")
print(y)
Sample Output:
Original array: [24 27 30 29 18 14] Copy of the said array: [24 27 30 29 18 14]
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال