multiply each element of a list by a number

Méta-MCI (MVP) enleverlesX.XmcX at XmclaveauX.com
Sat Dec 27 09:30:41 CET 2008


Hi!

> map(multby3, (1, 2, 3, ))

...with lambda:  
    map(lambda x: x*3, [1,2,3])

@-salutations
-- 
Michel Claveau





More information about the Python-list mailing list