#write a function count_pass that has one parameter - list of #grades #function returns the number of students who passed the course, and #the average passing grade #write a function random_list that has 3 parameters: size, min, max #size-number of elements in the list, min - minimal value, max - #maximal value. Function generates and returns the one dimensional #list of size integers, each integer between min and max #write main to generate the list, and test function count_pass import random def random_list(size, min, max): my_list=[] for i in range(size): my_list.append(random.randint(min, max)) return my_list def count_pass(my_list): size=len(my_list) count=0 sum=0 for i in range(size): if(my_list[i]>=60): count+=1 sum+=my_list[i] if(count>0): return count, sum/count else: return count, -1 def main(): size=random.randint(5,15) print("size is", size) grades=random_list(size, 0, 100) print("list of grades is") print(grades) count, ave=count_pass(grades) if(count==0): print("nobody passed the course") else: print("count", count, "average", ave) main()