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)





Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250