#Write a program that reads 5 grades and creates a list. The program #finds sum and average of the grades #Write the following functions: make_list and sum_ave def make_list(size): #different way to create a list, not using append my_list=[0]*size print("Enter", size, "grades") for i in range(size): grade=int(input()) my_list[i]=grade return my_list #size=5, [0, 0, 0, 0, 0], then you input first integer #my_list[0]=15, my_list[1]=100, my_list[2]=56 def sum_ave(my_list): length=len(my_list) sum=0 for i in range(length): sum=sum+my_list[i] return sum, sum/length def main(): size=int(input("enter the size of the class ")) if(size>0): grades=make_list(size) print("the grades are") print(grades) sum, ave=sum_ave(grades) print("sum=", sum, "ave=", ave) else: print("empty class") main()