python - producing an array with the same number in -
i want array of size 80
, want fill 1 number. number 1
, [1,1,1,1,1,80 times]
there quick method of doing this?
since integers immutable, can safely this:
[1] * 80
i want array of size 80
, want fill 1 number. number 1
, [1,1,1,1,1,80 times]
there quick method of doing this?
since integers immutable, can safely this:
[1] * 80
Comments
Post a Comment