I have a list of grades ranging from between 1 and 100.
I need to find the following solution in PYTHON
0-10   0
10-20  5 *****
30-40  7 *******
40-50  8 ********
And so on up to 100.  0-10 has not instances in the list. The number and * represent how many grades are in the category within the list.
I have been told to create a list to of the total grades per quantity first and then work o the table later.
I should be using a for loop.
I’ve tried all different codes but I can’t create the list. I can’t seem the get the code to add in the instances without listing the instances individually.
this is what I have so far
data = [90,30,13,67,85,87,50,45,51,72,64,69,59,17,22,23,
        44,25,16,67,85,87,50,45,51,72,59,14,50,55,32,23,
        24,25,37,28,39,30,33,35,40,34,41,43,94,95,98,99,
        44,45,47,48,49,53,61,63,69,75,77,60,83]
total=0
myList=[]
for grade in data:
myList.append(grade>=10)
data.append(0)
for grade in data(len(myList)):
 total=+1
 elif(grade>10 and grade<20): 
 myList.append(len(grade))
 total=+1
 print(myList)
Any help, please. I’m very new at this.
 
     
    