how to make a list of N 1s



Hi,

how can I construct a list L of all 1s with a length N.

I mean,
when I call makelist(3, L), I want it to produce L=[1,1,1].

thanks in advance...

.