title: Test Average and Grade with two additional functions
body: <p>I have been at this for a while, and I am stuck. I have to write a program that asks the user for each score and the average test score. I need the functions calcAverage which accepts five test scores and returns the average of the scores. determineGrade which accepts a score and returns the grade as a string based off the standard grading scale (90-100 is an A, 80-89 is a B, 70-79 is a C, etc). But I also need a function for getValidScore which prompts and reads a single valid test score and once the score is has been input it returns to the calling module. And finally isInValidScore is a function that checks whether a passed test score is in range from 0-100 and returns a Boolean letting me know if it's valid.
  Here's what I have:</p>
  
  <pre><code>def main():
  
     test1 = int(input('Enter test grade 1: '))
     test2 = int(input('Enter test grade 2: '))
     test3 = int(input('Enter test grade 3: '))
     test4 = int(input('Enter test grade 4: '))
     test5 = int(input('Enter test grade 5: '))
  
     grade = (test1 + test2 + test3 + test4 + test5)
  
     input('press enter to continue')
     print(calc_average)
     print(determine_grade)
     print(getValidScore)
     print(isInvalidScore)
     return;
  
  def calcAverage():
  
     grade / 5
     return averageScore
  
  def determinGrade(score):
     if grade &gt;= 90 and grade &lt;= 100:
         return 'A'
     elif grade &gt;= 80 and grade &lt;= 89:
         return 'B'
     elif grade &gt;= 70 and grade &lt;= 79:
         return 'C'
     elif grade &gt;= 60 and grade &lt;= 69:
         return 'D'
     else:
         return 'F'
  
  def getValidScore():
     grade = int(input('input score'))isInvalidScore(score)
     while isInvalidScore == false:
         print('ERROR')
     grade = int(input('input correct score'))
     return score
  
  def isInvalidScore(score):
     status = True
     if score &lt; 0 or score &gt; 100:
        status = True
     else: status = False
     return status
  
  main() 
  </code></pre>
  
  <p>So I added returns and when I run the program, I get this:</p>
  
  <p>Enter test grade 1: 99</p>
  
  <p>Enter test grade 2: 88</p>
  
  <p>Enter test grade 3: 77</p>
  
  <p>Enter test grade 4: 66</p>
  
  <p>Enter test grade 5: 55</p>
  
  <p>press enter to continue</p>
  
  <p>function calc_average at 0x02BAD228></p>
  
  <p>function determine_grade at 0x02BAD270></p>
  
  <p>function getValidScore at 0x02BAD2B8></p>
  
  <p>function isInvalidScore at 0x02BAD300></p>