so im trying to complete an assignment and i need to figure out how to get all the grades that are below 60 out of a list of grades the user submits. so far this is what i have
def getGrade():
list = []
numOfGrades = int(input("please enter how many grades you will be entering: "))
for i in range(numOfGrades):
grades = int(input("please enter a grade: "))
list.append(grades)
return numOfGrades, list
def validategrade(grades):
if grades > 100 or grades < 0:
print("one or more of the grades you entered is wrong please try again")
getGrade()
def max(list):
return max(list)
def min(list):
return min(list)
def calculateAverage(sum, numOfGrades):
return sum/numOfGrades
def displayAll(classAvg):
print("The class average is", round(classAvg, 1))
