fill a sequence

William Park parkw at better.net
Sat Oct 14 02:03:28 EDT 2000


On Sat, Oct 14, 2000 at 05:02:14AM +0000, Johannes Zellner wrote:
> 
> Hi,
> 
> is there somthing like the C++ std::fill()
> 
> e.g. I want to create a sequence of 5 0's
> 
>     a = [0, 0, 0, 0]

How about,
    a = [0]*4

--William




More information about the Python-list mailing list