Re: associative array

2010-04-02 Thread Bernard Czenkusz
On Thu, 01 Apr 2010 11:57:11 +, Harishankar wrote: > On Wed, 31 Mar 2010 09:40:30 -0700, Javier Montoya wrote: > >> Dear all, >> >> I'm a newbie in python and would be acknowledge if somebody could shed >> some light on associative arrays. >> More precisely, I would like to create a multi-di

Re: associative array

2010-04-01 Thread Harishankar
On Wed, 31 Mar 2010 09:40:30 -0700, Javier Montoya wrote: > Dear all, > > I'm a newbie in python and would be acknowledge if somebody could shed > some light on associative arrays. > More precisely, I would like to create a multi-dimensional associative > array. I have for example a list of stude

Re: associative array

2010-04-01 Thread Peter Otten
Javier Montoya wrote: > Is it possible to sort the dictionary by the student's grades in > descending order? You cannot sort dictionaries, but you can put dictionary items into a list and then sort that. Assumming that you have a dictionary student_dict that maps student IDs to Student instanc

Re: associative array

2010-04-01 Thread Chris Rebert
On Thu, Apr 1, 2010 at 3:58 AM, Javier Montoya wrote: > On Mar 31, 7:36 pm, Gary Herron wrote: >> JavierMontoyawrote: >> > Dear all, >> >> > I'm a newbie in python and would be acknowledge if somebody could shed >> > some light on associative arrays. >> > More precisely, I would like to create a

Re: associative array

2010-04-01 Thread Javier Montoya
On Mar 31, 7:36 pm, Gary Herron wrote: > JavierMontoyawrote: > > Dear all, > > > I'm a newbie in python and would be acknowledge if somebody could shed > > some light on associative arrays. > > More precisely, I would like to create a multi-dimensional associative > > array. I have for example a l

Re: associative array

2010-03-31 Thread Gary Herron
Javier Montoya wrote: Dear all, I'm a newbie in python and would be acknowledge if somebody could shed some light on associative arrays. More precisely, I would like to create a multi-dimensional associative array. I have for example a list of students which are identified uniquely by their stud

Re: associative array

2010-03-31 Thread Kushal Kumaran
On Wed, Mar 31, 2010 at 10:10 PM, Javier Montoya wrote: > Dear all, > > I'm a newbie in python and would be acknowledge if somebody could shed > some light on associative arrays. > More precisely, I would like to create a multi-dimensional associative > array. I have for example a list of students