#Program 1:Student takes certain amount of courses during the academic #year. Write a program that reads number of courses and final #grade for each course, and finds the average final grade for #the academic year.MUST USE LOOP FOR Everything in MAIN def main(): n = int(input("enter number of courses ")) total=0 for i in range(n): grade=int(input("enter grade ")) total=total+grade if(n>0): ave=total/n print(ave) else: print("didn't take any course") main()