How to group a list of numbers into certain categories
<p>I am trying to figure out how to take in a list of numbers and sort them into certain categories such as 0-10, 10-20, 20-30 and up to 90-100 but I have the code started, but the code isn't reading in all the inputs, but only the last one and repeating it. I am stumped, anyone help please?</p>

<pre><code>def eScores(Scores):

    count0 = 0
    count10 = 0
    count20 = 0
    count30 = 0
    count40 = 0
    count50 = 0
    count60 = 0
    count70 = 0
    count80 = 0
    count90 = 0

    if Scores &gt; 90:
        count90 = count90 + 1
    if Scores &gt; 80:
        count80 = count80 + 1
    if Scores &gt; 70:
        count70 = count70 + 1
    if Scores &gt; 60:
        count60 = count60 + 1
    if Scores &gt; 50:
        count50 = count50 + 1
    if Scores &gt; 40:
        count40 = count40 + 1
    if Scores &gt; 30:
        count30 = count30 + 1
    if Scores &gt; 20:
        count20 = count20 + 1
    if Scores &gt; 10:
        count10 = count10 + 1
    if Scores &lt;= 10:
        count0 = count0 + 1

    print count90,'had a score of (90 - 100]'
    print count80,'had a score of (80 - 90]'
    print count70,'had a score of (70 - 80]'
    print count60,'had a score of (60 - 70]'
    print count50,'had a score of (50 - 60]'
    print count40,'had a score of (40 - 50]'
    print count30,'had a score of (30 - 40]'
    print count20,'had a score of (20 - 30]'
    print count10,'had a score of (10 - 20]'
    print count0,'had a score of (0 - 10]'    

    return eScores(Scores)
</code></pre>
