Q:

How to create a numpy array of N numbers of the same value?

This is surely an easy question:
How does one create a numpy array of N values, all the same value? 
For instance, numpy.arange(10) creates 10 values of integers from 0 to 9. 
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

I would like to create a numpy array of 10 values of the same integer, 
array([3, 3, 3, 3, 3, 3, 3, 3, 3, 3])

A:

Use numpy.full():
>> 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])

