Berkeley CSUA MOTD:Entry 49204
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/27 [General] UID:1000 Activity:popular
5/27    

2008/2/20-22 [Computer/HW/Memory] UID:49204 Activity:nil
2/20    In python, say I have a function:
        def hello(a,b,c): ...
        and I have a list l that contains 3 entries (l[0], l[1], l[2]),
        how can I pass it easily in the following manner?
        hello(l)
        \_ hello(*l)
           \_ Oh cool, thanks!!!