[Tutor] List within Dictionary

pearl jb likemepearl at yahoo.co.in
Wed Jun 20 12:35:02 CEST 2007


I wanted to know "How to access the list elements which is in Dictionary"  

dict = {'John':['ph=919873673','res=91928827737'] , 'William' : ['ph=91983763','res=91837474848'] }


I want the output to be

1. John res=91928827737
2. William ph=91983763


       
---------------------------------
 Once upon a time there was 1 GB storage on Yahoo! Mail. Click here for happy ending!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070620/0b6d0513/attachment.html 


More information about the Tutor mailing list