counting occurances in lists within lists.

Adonis deltapigz at telocity.com
Sat Dec 21 12:35:07 EST 2002


how do i effectively count the amount of 0s in what is mentioned on the
subject.
i.e.
[[0,0,0,1,2,3]
 [4,5,6,7,8,9]
 [10,11,12,13,14,15]]

return 3 0s found.

i have googled but my search phrase was not correct.
any help is greatly appreciated.

Adonis





More information about the Python-list mailing list