>> import numpy as np >> fives = np.repeat(5, 10) #This creates an array of the number 5 repeated 10 times.
>> import numpy as np >> np.full( shape=10, fill_value=3, dtype=np.int) array([3, 3, 3, 3, 3, 3, 3, 3, 3, 3])