a= int(input("Enter number of students:"))
i=1
n = []
t = []
p = []
avg = []
while i<=a:
    total=0
    name = input("Enter name of student:")
    n.append(name)
    subjects = int(input("Enter count of subjects:"))
    i=i+1
    j=1
    while j<=subjects:
        s = int(input("Enter marks:"))
        total = total + s
        j=j+1
        percentage = (total/(subjects*100))*100
        average = total/subjects
    t.append(total)
    p.append(percentage)
    avg.append(avg)
    
    
    result = dict(zip(n,p))
    
    
    print("Total marks of", name, "is", total)
print("The students:",n)
print("The total of students:",total)
print("The average of students:",avg)
print("The percentage of students:", percentage)
print("The result of students:", result)   
i want to store the data which I get from this code and later on display specific data like if I search for student's name, I'll get his marks and average. how do I do this?
 
    