title: Grade Calculator with while loop
body: <p>I need to creat a grade calculator that puts toughater the results of 5 test and avareges them, and gives out the result of the 5 grades, I made the final grade result program, but I can't figure out how to make the loop that runs only five times and sum each inputed results.</p>
  
  <pre><code>grade = 0
  total = 0
  for grade in range(0,5):
  
   if grade &gt;= 0 and grade &lt;= 100:
    grade = grade + int(input('What was your score: '))
  
   elif grade &gt;= 101: 
  
    grade += int(input('It should be a number from 0 to 100, what was your 
  score: '))
  
  if 93&lt;=grade &lt;= 100:
     print 'A'
  elif 90 &lt;= grade &lt; 93:
    print 'A-'
  elif 87 &lt;= grade &lt; 90:
    print 'B+'
  elif 83 &lt;= grade &lt; 87:
    print 'B'
  elif 80 &lt;= grade &lt; 83:
    print 'B-'
  elif 77 &lt;= grade &lt; 80:
    print 'C+'
  elif 73 &lt;= grade &lt; 77:
    print 'C'
  elif 70 &lt;= grade &lt; 73:
    print 'C-'
  elif 67 &lt;= grade &lt; 60:
    print 'D+'
  elif 63 &lt;= grade &lt; 67:
    print 'D'
  elif 60 &lt;= grade &lt; 63:
    print 'D-'
  elif grade &lt; 60:
    print 'F'
  </code></pre>