Re: [Tutor] assigning values to dictionary

2008-10-03 Thread jeremiah
Awesome. Thanks! On Fri, 2008-10-03 at 11:07 -0700, Steve Willoughby wrote: > On Fri, Oct 03, 2008 at 11:02:34AM -0700, jeremiah wrote: > > i think i figured it out. The result is that I have a dictionary > within > > a dictionary..i think. > > > > for example: > > > > {'mcdonalds': {'hamburger':

Re: [Tutor] assigning values to dictionary

2008-10-03 Thread Steve Willoughby
On Fri, Oct 03, 2008 at 11:02:34AM -0700, jeremiah wrote: > i think i figured it out. The result is that I have a dictionary within > a dictionary..i think. > > for example: > > {'mcdonalds': {'hamburger': 'big mac','drink':'coke'}} > > How would I go about itterating through this? Depends on h

Re: [Tutor] assigning values to dictionary

2008-10-03 Thread W W
On Fri, Oct 3, 2008 at 1:02 PM, jeremiah <[EMAIL PROTECTED]>wrote: > i think i figured it out. The result is that I have a dictionary within > a dictionary..i think. > > for example: > > {'mcdonalds': {'hamburger': 'big mac','drink':'coke'}} > > How would I go about itterating through this? > for

Re: [Tutor] assigning values to dictionary

2008-10-03 Thread jeremiah
i think i figured it out. The result is that I have a dictionary within a dictionary..i think. for example: {'mcdonalds': {'hamburger': 'big mac','drink':'coke'}} How would I go about itterating through this? Thanks, JJ On Fri, 2008-10-03 at 10:39 -0700, Steve Willoughby wrote: > On Fri, Oct

Re: [Tutor] assigning values to dictionary

2008-10-03 Thread Steve Willoughby
On Fri, Oct 03, 2008 at 10:29:13AM -0700, jeremiah wrote: > I have a list of dictionary values that i am looping through that upon > each iteration I would like to assign these values to a new dictionary > name. > > For example... > > item=0 > for line in some_dict: > ## some how assign di

[Tutor] assigning values to dictionary

2008-10-03 Thread jeremiah
I have a list of dictionary values that i am looping through that upon each iteration I would like to assign these values to a new dictionary name. For example... item=0 for line in some_dict: ## some how assign dict values to new name "new_dict_name_"+item = line I have not tes