468,471 Members | 1,596 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,471 developers. It's quick & easy.

Re: Help counting the total number of dictionaries inside a listthat contain a specified key value

Jon Bowlas wrote:
For example I'd like to kow how many dictionaries there are with a
level 1, 2 , 23 & 3 etc. How would one go about achieveing this?

Hope someone can help.
sum(u'Level 2 Courses' in dct for dct in yourlist)


Aug 12 '08 #1
0 855

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Megan | last post: by
18 posts views Thread by ChadDiesel | last post: by
1 post views Thread by Jerry | last post: by
3 posts views Thread by viewsonic | last post: by
27 posts views Thread by Simon Biber | last post: by
6 posts views Thread by karafire2003 | last post: by
1 post views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.