[Tutor] Using dictionary to find the mode of a list
conorleister at gmail.com
Fri Oct 26 00:36:03 CEST 2007
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 dictionaries.
prompt='Enter numbers, blank line to finish:'
print 'The values you entered:'
print 'Values sorted: ' ,a
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor