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)




Picture showing the output of performing an operation between an array scalar in NumPy

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, April 1, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250