sorry I did this following, please advise if any better way exist:
gc = lambda x,y: x[0]+y[0]
atgc = lambda x,y,k,l: x[0]+y[0]+k[0]+l[0]
>>> gc(a,b)/atgc(a,b,c,d)
0.54545454545454541
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.
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor