How to find the average of numbers being input, with 0 breaking the loop?
<p>I just need to figure out how to find the average of all these input numbers by the user while using 0 as a exit of the loop. </p>

<p>I need to figure out how to eliminate using 0 as part of the average. example: 5, 0, 5 ,5... the average is 5 by eliminating the 0. </p>

<pre><code>nA = 1
nSum = 0
print ('enter numbers to find the average')
print ('enter 0 to quit.')
while nA !=0:
    nA = input ('gemmi a number:')
    nSum+=nA
   dAvg = nSum

print 'the total amount of numbers is' , nSum ,
print 'your average is' , dAvg , 
</code></pre>

<p>How do I do this?</p>
