fill a sequence

Sebastian Strand look at my.sig
Sat Oct 14 06:08:22 EDT 2000


"Johannes Zellner" <johannes at zellner.org> wrote in
news:slrn8ufq6k.6ou.johannes at kristine.zellner.org...
> 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]


a = [0] * 5

...should do the trick.


--
Sebastian Strand
   thezeb -at- bigfoot -dot- com
   http://www.zeb.f2s.com/






More information about the Python-list mailing list