[Tutor] Accessing Specific Dictionary items

eire1130 at gmail.com eire1130 at gmail.com
Tue Aug 2 00:12:59 CEST 2011


I'm not sure I'm following. Could you give an example of expected input and expected output?


Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Mike Nickey <mnickey at gmail.com>
Sender: tutor-bounces+eire1130=gmail.com at python.org
Date: Mon, 1 Aug 2011 15:05:30 
To: <tutor at python.org>
Subject: [Tutor] Accessing Specific Dictionary items

Hi all,

I'm trying to access and use specific items within a dictionary that
is returned but am having issues in doing so.
[{'city': 'Sunnyvale', 'region_name': 'CA', 'area_code': 408,
'metro_code': 'Santa Clara, CA', 'country_name': 'United States'}]

How can I populate a list of many different returns so that I have a
list that contains all the cities and in line with the item that is
referenced.

The first step is to populate the list unsorted as it needs to be in
correlation to the item that it came from.
Thanks for your help.

-- 
~MEN
_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list