New to Python 3 - Unable to get program to move to the next module
<p>I am new to Python and am trying to get a program to move from one defined module to the next. The first module is working just fine but will not move to the def calcAverage module. I have attached both the code and the result. I only have the sum set up in the first module to verify that it was calculating correctly. This info will be returned and printed into a table. (Sorry if I am not using the correct terminology.) I'm very new to this.</p>

<p>Here is the result:
Enter the first test score.89
Enter the second test score.94
Enter the third test score.100
Enter the fourth test score.88
Enter the fifth test score.96
467</p>

<blockquote>
  <blockquote>
    <p>>
    Nothing happens after this.</p>
  </blockquote>
</blockquote>

<p>Here is the code:</p>

<p>`    # This program will calculate the average of five test scores.</p>

<pre><code># Print my name
print('Beth Salvatore')

# Assign corresponding letter grade.
A_score = 90
B_score = 80
C_score = 70
D_score = 60

def main():
    # Get five test scores. Get first score.
    test1 = int(input('Enter the first test score.'))
    # Get second score.
    test2 = int(input('Enter the second test score.'))
    # Get third score.
    test3 = int(input('Enter the third test score.'))
    # Get fourth score.
    test4 = int(input('Enter the fourth test score.'))
    # Get fifth score.
    test5 = int(input('Enter the fifth test score.'))
    # Add all scores.
    x = [test1, test2, test3, test4, test5]
    total = sum(x)
    print (total)

    # Return the total of all tests.
    return total

def calcAverage(score1, score2, score3, score4, score5):
    # Find the average of all tests.
    calcAverage = (total) /5.0
    return calcAverage
    print('The average test score is %', calcAverage) 

def determineGrade(score):
    # Assign a letter grade to the average.
    if score &gt;= A_score:
        print('A')
    else:
        if score &gt;= B_score:
            print('B')                           
        else:
            if score &gt;= C_score:
                print ('C')
            else:
                if score &gt;= D_score:
                    print('D')
                else:
                    print('F')

    # Return the letter grade
    return score

    #Print the tests and corresponding grades in a table.
    print('score \t\t numeric grade \t letter grade')
    print('---------------------') \
    print('score 1:' test1, score)
    print('score 2:' test2, score)
    print('score 3:' test3, score)
    print('score 4:' test4, score)
    print('score 5:' test1, score)

# Call the main function.
main()`  
</code></pre>

<p>def must be declared before the call of <em>main()</em>.
You're OK.</p>

<p>But you never called <em>calcAverage()</em> nor <em>determineGrade()</em> into the def of your <strong>main</strong>.</p>

<p>If your <em>return(total)</em> into your <strong>main</strong>, then use <em>print(main())</em> (with no sense at all).</p>

<p>Or, if you <em>print(total</em>) in your <strong>main</strong>, use <em>total=test1+test2+...+test5</em> before.</p>

<p>That's all at this point.</p>

<blockquote>
  <p>total = test1+test2+test3+test4+test5</p>
  
  <p>print (total)</p>
</blockquote>

<pre><code># Return the total of all tests.
# return total
# because you rarely return a int via a main, until you call the main from elsewhere
</code></pre>

<p>Just add <em>determineGrade(total)</em> into your main after <em>print(total)</em></p>

python module