#write a program that first reads number of students in the class #then for each student program reads name - store names in the list of strings #and for each student program reads number of credits student takes in the semester #store credits in list of floats #program finds the name of the student with max number of credits def main(): num_students=int(input("enter number of students ")) names=[] credits=[] for i in range(num_students): student_name=input("enter your name ") names.append(student_name) num_credits=float(input("enter number of credits you take ")) credits.append(num_credits) print("list of names") print(names) print("list of credits") print(credits) print("names and credits") for i in range(num_students): print(names[i],"\t",credits[i]) max_c=max(credits) index_max=credits.index(max_c) name_max=names[index_max] print(name_max,"got", max_c,"credits which is maximal number of credits") main()