Re: [Tutor] Using dictionary to find the mode of a list

2007-10-26 Thread Kent Johnson
Conor Leister wrote: > I'm just trying to get the mode of a list. > Here's the code I have that gathers the data and sorts it. i just need > to be able to get the mode of a using a dictionary and i can't seem to > figure out anything. i'm completely lost. this code works fine, i just > need to

Re: [Tutor] Using dictionary to find the mode of a list

2007-10-25 Thread Alan Gauld
"Conor Leister" <[EMAIL PROTECTED]> wrote > Here's the code I have that gathers the data and sorts it. My first question is why are you writing a bubble sort routine for your list? In almost every conceivable case the built-in sort method will be faster. > be able to get the mode of a using a d

[Tutor] Using dictionary to find the mode of a list

2007-10-25 Thread Conor Leister
I'm just trying to get the mode of a list. Here's the code I have that gathers the data and sorts it. i just need to be able to get the mode of a using a dictionary and i can't seem to figure out anything. i'm completely lost. this code works fine, i just need to add to it and i'm not great with d