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




Picture showing the output of the array of all fives in NumPy

Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250