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

Afternoon Teaching Staff Hiring Process

National University of Sciences and Technology ( Nust ) Admission Process

Opening a Bank Account for Minors in Pakistan: A Comprehensive Guide

Urban Unit Official Training Confirmation Email & Dates 2025

How to Choose the Best University in Saudi Arabia – A Guide for International Students

Pension New Method Explained - Which Employees Not Eligible For Pension ?

Directorate of Electronic Media & Publications jobs in 2025 apply online

Dengue Fever: Comprehensive Guide on Prevention, Treatment, and Health Guidelines

Air University Main Campus - How to Apply

Check Leap Year or Not Using Python