Articles → Numpy → Create an array of all fives in NumPy

Create an array of all fives in NumPy






Code




import numpy as np
np.ones(10) * 5





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, April 05, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250