students = {
"Ali": [85, 90, 78],
"Sara": [92, 88, 95],
"Usman": [70, 75, 80],
"Ayesha": [60, 65, 58]
}
for name in students:
marks = students[name]
total = sum(marks)
average = total / len(marks)
print(f"{name}'s average marks: {average:.2f}")
Calculate and print each student average using Python
Login to like
Posted By:

UmairMehmood
11 days ago
Join the conversation!
Login to Comment