> 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))
Try changing the above line to sorted(neuron, key=self.total) where self.total should a function taking one element from the list neuron. > TypeError: 'int' object is not iterable Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 -- This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor