Articles → Numpy → Performing An Operation Between An Array Scalar In Numpy
Performing An Operation Between An Array Scalar In Numpy
Example
import numpy as np
arr = np.arange(1,10)
print("Print Array before division:", arr)
arr = arr * 3
print("Print Array after multiplication with 3:", arr)
Output
Click to Enlarge