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

How to Keep a Camera Stream Active Across Pages Without Reinitializing the Camera on Each Page?

فلم پی کے میں دکھایا گیا ایک سین حقیقت میں تبدیل

Inspector ASF Seats announced through FPSC 2025

Global Scholarship Opportunities for 2025 – Fund Your Education Abroad

BPS 5 and BPS 16 Supreme Court of Pakistan Job Vacancies 2025

Urban Unit Official Training Confirmation Email & Dates 2025

Basic Calculator with if elif Using Python

بزرگ شہریوں کے لیے چہرے کی شناخت کی ٹیکنالوجی متعارف

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

Explain the interrelationship of language skills. How does the classroom environment affect them?