[Tutor] Sorting a dictionary into a list cont'd

Jacob Bender benderjacob44 at gmail.com
Tue May 8 23:27:29 CEST 2012


Oh, and here's the error my program returns when it runs:

Traceback (most recent call last):
  File "/home/jacob/Dropbox/Shared_With_Chris_And_Logan/Jake's
Programs/Yet_To_Work_On/Synaptic/synaptic.py", line 57, in <module>
    neuron.smartest()
  File "/home/jacob/Dropbox/Shared_With_Chris_And_Logan/Jake's
Programs/Yet_To_Work_On/Synaptic/synaptic.py", line 50, in smartest
    sorted(neuron, key=self.total(neuron))
TypeError: 'int' object is not iterable

-- 
Thank you,
Jacob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120508/e5c27d00/attachment.html>


More information about the Tutor mailing list