2012/12/19 loïc Lauréote <laureote-l...@hotmail.fr>: hi, I have a question, is there a tool to calculate on list ?
something like : >a= [1,1,1,1] >b = [5,9,8,4] >c = a+b*a >print c >[6,10,9,5] Thx ====== Hi, for such simpler cases, you may try list comprehensions and probably the zip(...) function >>> [a+b*a for a,b in zip([1,1,1,1], [5,9,8,4])] [6, 10, 9, 5] >>> hth, vbr -- http://mail.python.org/mailman/listinfo/python-list