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

10-Day PhD Interview Prep Series: Essential Questions & Answers

Virtual University of Pakistan Admission Process

Create a tuple of 6 items and print its length using len() function Using Python

Find the Largest Among Three Numbers Using Python

Heavy Industries Taxila Education City Jobs 2025 - Teachers & Others HITEC Latest Jobs

PSEB Pakistan Software Export Board Islamabad Jobs 2025

INSPECTORATE OF MINES, PUNJAB, MINES & MINERALS DEPARTMENT 2025 - 14/2025

Use a dictionary where keys are student names and values are lists of 3 marks Using Python

Child Protection and Welfare Bureau Jobs 2025

Superior University Admission Process