Dear tutors,<div><br></div><div>I&#39;m trying to create a neural network program. Each neuron is in a dictionary and each of its connections and their strengths are in a nested dictionary. So {0:{1:4, 2:5}}, 1:{0:6}, 2:{1:2}} would mean that neuron 0 is connected to neuron 1 with a strength of 4. And it also means that neuron 1 is connected to neuron 0 with a strength of 6.</div>
<div><br></div><div>The problem is that I&#39;m working on a function that is supposed to add the total strengths of each neuron. So, for example, neuron 0&#39;s connections have a total strength of 9 (4+5). The other problem is getting all of the total strengths and ordering the neurons into a list. So, from the example, the list would be from [0,1,2] because zero has the greatest total strength of 9, then 1 with a total strength of 6 and so on. I&#39;ve been working on this problem for at least 2 hours now and still haven&#39;t found anything close to a solution.</div>
<div><br></div><div>Thank you and please help!</div><div><div><br></div>
</div>