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':
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
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
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
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
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