• + 0 comments
    avg = [sum(value)/len(value) for key,value in student_marks.items() if key==query_name][0]
    avg = f"{avg:.2f}"
    print(avg)