[Tutor] summing lists
Hs Hs
ilhs_hs at yahoo.com
Tue Apr 10 17:22:22 CEST 2012
Hi:
I have 4 lists:
>>> a
[40]
>>> b
[2]
>>> c
[23]
>>> d
[12]
how is it possible to do add elements in list. I can do this using tupples, but I do not know how to append elements to tuple, thats the reason I am using list.
I want to find the value of a+c/a+b+c+d - which is 40+23/40+2+23+12.
Any help appreciated.
thanks
Hs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120410/1f480d3b/attachment.html>
More information about the Tutor
mailing list