#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. #input: num_courses, integer, grade for each course #calculations: loop while, need to accumulate sum of all grades #average=sum/num_courses #Version 1: everything in main def main(): num_courses=int(input("how many courses you are taking ")) sum=0 counter=0 while(counter