Discussions Events Study Material Jobs
Calculate and print each student average using Python - Uniwaly

Explore Diverse Conversations

Calculate and print each student average using Python

Posted By: UmairMehmood Published On: 13 June 2025 At: 12:24 PM
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}")

Tags:

python student average marks python code
Login to like

Posted By:

Author Profile

UmairMehmood

11 days ago

Join the conversation!

Login to Comment

Discover More Articles

Discuss the need of new professional profile of teaching staff in order to survive in this competitive era.

Indian BSF soldier arrested on Pakistani soil by Pak Rangers

Pakistan Bait ul Mal Jobs 2025 - Apply Now

Discuss need of assessment in higher education in Pakistan? Up to what extent you are satisfied with the present assessment system and how it can be improved?

وزارت قانون و انصاف حکومت پاکستان میں شاندار نوکریاں

Ask user for an item and check whether it exists in a given tuple or not using Python

New 30,000 Teaching Jobs Coming Soon on Merit : CM Punjab

PPSC Jobs - Male and Female Assistant Registrar Cooperative Societies 2025

Survey Supervisors - The Urban Unit Jobs 2025

Elucidate the role of Information communication in Education. Is it the way for modernization of education? Discuss.