Python: How do I add a “Final Grade” converter in my Grading System Calculator
<p>I kind of have an idea what to do, but I can't figure it out. The program needs to be able to get the students name and three test scores, then get the average score (percentage) out of the three scores. After that, you need to convert the score (percentage) into a grade.</p>

<p><strong>EDIT:</strong>
How would I remove the space in the middle of the grade and the "%"?</p>

<ul>
<li>Please press "Enter" to begin</li>
<li>Enter your Name: Jordan Simpson </li>
<li>First test score: 67% </li>
<li>Second test score: 78% </li>
<li>Third test score: 89% </li>
<li>Final letter grade: C+ </li>
<li>Jordan Simpson test score is: <strong>78.0 %</strong> </li>
<li>Do you want to restart the program?</li>
</ul>

<hr>

<p><strong>Grading Scale:</strong></p>

<p><img src="http://i.stack.imgur.com/eeYDh.png" alt="Grading Scale"></p>

<hr>

<pre><code>input ('Please press "Enter" to begin')

while True:
    import math

    studentName = str(input('Enter your Name: '))
    firstScore = int(float(input('First test score: ').replace('%', '')))
    secondScore = int(float(input('Second test score: ').replace('%', '')))
    thirdScore = int(float(input('Third test score: ').replace('%', '')))
    scoreAvg = (firstScore + secondScore + thirdScore) / 3

    def grade():
        if scoreAvg &gt;= 93 and &lt;= 100:
            return 'A'
        if scoreAvg &lt;= 92.9 and &gt;= 89:
            return 'A-'
        if scoreAvg &lt;= 88.9 and &gt;= 87:
            return 'B+'
        if scoreAvg &lt;= 86.9 and &gt;= 83:
            return 'B'
        if scoreAvg &lt;= 82.9 and &gt;= 79:
            return 'B-'
        if scoreAvg &lt;= 78.9 and &gt;= 77:
            return 'C+'
        if scoreAvg &lt;= 76.9 and &gt;= 73:
            return 'C'
        if scoreAvg &lt;= 72.9 and &gt;= 69:
            return 'C-'
        if scoreAvg &lt;= 68.9 and &gt;= 67:
            return 'D+'
        if scoreAvg &lt;= 66.9 and &gt;= 60:
            return 'D'
        return 'F'

    print(grade(scoreAvg))
    print(studentName, "test score is: ",scoreAvg,'%')


    endProgram = input ('Do you want to restart the program?')

    if endProgram in ('no', 'No', 'NO', 'false', 'False', 'FALSE'):
        break
</code></pre>
