list + dictionary searching

Wojtek Walczak gminick at bzt.bzt
Mon Sep 1 06:54:18 EDT 2008


On Mon, 1 Sep 2008 03:14:22 -0700 (PDT), Manoj wrote:

> I would like to :
>
> search dictionaries within this list
> create a new list with dictionaries which gives 1 dictionary for every
> user with month_year as a key and utilization for that month as a
> value
>
> Please give your thoughts

Reading about for loop seems like a good idea. You can easily
create a set of functions that gives you direct access to the
information you need.

http://docs.python.org/tut/node6.html#SECTION006200000000000000000
http://docs.python.org/tut/node7.html#SECTION007500000000000000000

Give it a try. Try to design some functions that let you
view and add new lists/dictionaries to your variables.

-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/



More information about the Python-list mailing list