Le Wed, 20 May 2009 10:25:21 -0400,
Robert Berman <[email protected]> s'exprima ainsi:
> What I do not know how to do is to call the selected function.
If you have options and functions "hard-coded" in lists (or if you get them
from outside), you can still let python build a dict for you, using "zip":
l1 = [1,2,3]
l2 = [9,8,7]
ll = zip(l1,l2); print ll
d = dict(ll); print d
==>
[(1, 9), (2, 8), (3, 7)]
{1: 9, 2: 8, 3: 7}
Denis
------
la vita e estrany
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor