Re: Append data to a list within a dict

2007-04-15 Thread Tina I
Alex Martelli wrote: > Tina I <[EMAIL PROTECTED]> wrote: >... >> He he... at the age of 40 I'm well beyond school work ;) > > Why would that be? My wife's over 40, yet she's a student (currently at > Stanford -- they were overjoyed to admit her, with lot of life > experience as well as previo

Re: Append data to a list within a dict

2007-04-14 Thread Alex Martelli
Tina I <[EMAIL PROTECTED]> wrote: ... > He he... at the age of 40 I'm well beyond school work ;) Why would that be? My wife's over 40, yet she's a student (currently at Stanford -- they were overjoyed to admit her, with lot of life experience as well as previous studies, apparently). She's no

Re: Append data to a list within a dict

2007-04-14 Thread Hendrik van Rooyen
"Tina I" wrote: > Hello group, > > Say I have the following dictionary: > > ListDict = { > 'one' : ['oneone' , 'onetwo' , 'onethree'], > 'two' : ['twoone' , 'twotwo', 'twothree'], > 'three' : ['threeone' , 'threetwo', threethree']} > > Now I want to append 'twofour' to the list of the 'two'

Re: Append data to a list within a dict

2007-04-13 Thread Tina I
Michael Bentley wrote: > > On Apr 14, 2007, at 12:39 AM, Tina I wrote: > >> Say I have the following dictionary: >> >> ListDict = { >> 'one' : ['oneone' , 'onetwo' , 'onethree'], >> 'two' : ['twoone' , 'twotwo', 'twothree'], >> 'three' : ['threeone' , 'threetwo', threethree']} >> >> Now I want to

Re: Append data to a list within a dict

2007-04-13 Thread Tina I
Paul Rubin wrote: > Tina I <[EMAIL PROTECTED]> writes: >> ListDict = { >> 'one' : ['oneone' , 'onetwo' , 'onethree'], >> 'two' : ['twoone' , 'twotwo', 'twothree'], >> 'three' : ['threeone' , 'threetwo', threethree']} >> >> Now I want to append 'twofour' to the list of the 'two' key but I >> can't f

Re: Append data to a list within a dict

2007-04-13 Thread Michael Bentley
On Apr 14, 2007, at 12:51 AM, Paul Rubin wrote: > Is this a class exercise? Hint: > 1) figure out how to access the list of the 'two' key > 2) append 'twofour' to it. damn. -- http://mail.python.org/mailman/listinfo/python-list

Re: Append data to a list within a dict

2007-04-13 Thread 7stud
On Apr 13, 11:39 pm, Tina I <[EMAIL PROTECTED]> wrote: > Hello group, > > Say I have the following dictionary: > > ListDict = { > 'one' : ['oneone' , 'onetwo' , 'onethree'], > 'two' : ['twoone' , 'twotwo', 'twothree'], > 'three' : ['threeone' , 'threetwo', threethree']} > > Now I want to append 'tw

Re: Append data to a list within a dict

2007-04-13 Thread Paul Rubin
Tina I <[EMAIL PROTECTED]> writes: > ListDict = { > 'one' : ['oneone' , 'onetwo' , 'onethree'], > 'two' : ['twoone' , 'twotwo', 'twothree'], > 'three' : ['threeone' , 'threetwo', threethree']} > > Now I want to append 'twofour' to the list of the 'two' key but I > can't figure out how to that? Is

Re: Append data to a list within a dict

2007-04-13 Thread Michael Bentley
On Apr 14, 2007, at 12:39 AM, Tina I wrote: > Say I have the following dictionary: > > ListDict = { > 'one' : ['oneone' , 'onetwo' , 'onethree'], > 'two' : ['twoone' , 'twotwo', 'twothree'], > 'three' : ['threeone' , 'threetwo', threethree']} > > Now I want to append 'twofour' to the list of the