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 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -