multiply each element of a list by a number

Robert.T.Lynch at Robert.T.Lynch at
Sat Dec 27 01:05:09 CET 2008

What does *not* work is 
        3 * [0,1,2]
As you know, this gives
What I am hoping for is
I see that I can use 
but this seems overkill to me.  Can you tell I am coming to Python from 

Thanks -- Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list