Re: associative array

2010-04-02 Thread Bernard Czenkusz
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 student IDs. Additionally, for each student I have >> some information: FirstName, LastName, etc. >> >> The

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 hav

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
. >> > 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 student IDs. Additionally, for each student I have >> > some information: FirstName, L

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 associat

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

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 hav

associative array

2010-03-31 Thread Javier Montoya
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 student IDs. Additio