#Write a function def separate(grades) that has one parameter - list of grades in the #class. The function creates and RETURNS 3 new lists - list of failing grades (grades #below 60), list of A grades (90 and above) and the rest of the grades (between 60 and 89). Write #a program that randomly generates the list of grades of size 15, calls function separate, #and then prints THREE lists: failing grades, list of A grades, and the rest of the #grades. import random def separate(grades): fail_grade=[] pass_NoA_grade=[] list_A=[] size=len(grades) for i in range(size): if(grades[i]<60): fail_grade.append(grades[i]) elif(grades[i]>=90): list_A.append(grades[i]) else: pass_NoA_grade.append(grades[i]) return fail_grade, pass_NoA_grade, list_A def main(): grades=[] for i in range(15): grades.append(random.randint(0,100)) print(grades) fail_grade, pass_NoA_grade, list_A=separate(grades) print(fail_grade) print(pass_NoA_grade) print(list_A) main()