I am trying to write a program that stores the names/numbers the user enters in a list and uses functions to compute the maximum, minimum, and average of the students without asking how many there are. However, I don't know where to start. '''
print("-----Program for printing student name with marks using list-----")
D = {}
n = int(input('How many student record you want to store?? '))
ls = []
for i in range(0, n):
x,y = input("Enter the student name and Grade: ").split()
ls.append((y,x))
ls = sorted(ls, reverse = True)
print('Sorted list of students according to their marks in descending order')
for i in ls:
print(i[1], i[0])