#write a program that reads student grades (valid grade is an integer between 0 and #100, first non-valid input will terminate the input #program finds the number of passing grades, and the number of failing grades def main(): list_grades=[] grade=int(input("enter grade, integer between 0 and 100 ")) while(grade>=0 and grade<=100): list_grades.append(grade) grade=int(input("enter grade, integer between 0 and 100 ")) print("list of the grades is") print(list_grades) size=len(list_grades) print("there are",size,"grades in the list") count_pass=0 count_fail=0 for i in range(size): if(list_grades[i]>=60): count_pass+=1 else: count_fail+=1 print("number of students who passed", count_pass) print("number of students who failed", count_fail) main()