Discussions Events Study Material Jobs
Use a dictionary where keys are student names and values are lists of 3 marks Using Python - Uniwaly

Explore Diverse Conversations

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

Posted By: UmairMehmood Published On: 13 June 2025 At: 12:23 PM

Student Record System using Python

data = {
    "Ali": {"Math": 85, "Science": 90, "Urdu":70},
    "Sara": {"Math": 78, "Science": 88, "Urdu":70}
}
student = input("Enter student name: ")

if student in data:

        print(f"{student}'s marks in: {data[student]}")

else:
    print("Student not found.")


Tags:

python dictionary key dictionary in python
Login to like

Posted By:

Author Profile

UmairMehmood

11 days ago

Join the conversation!

Login to Comment

Discover More Articles

Elucidate the role of public and private sector in elementary education. Discuss the role of government of Pakistan in this context.

ASSISTANT PROFESSOR OF ENDOCRINOLOGY PPSC Jobs 14/2025 in SPECIALIZED HEALTHCARE & MEDICAL EDUCATION DEPARTMENT

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

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

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

Divisional Manager - The Urban Unit Jobs 2025

Your Rights Online: How to Report and Delete AI-Generated Fake Content Featuring You

Punjab Danish School New Jobs 2025 - Non Academic Staff Required

Final List of Selected Candidates for the post of Office Attendent Lahore High Court 2025

What is meant by continuing education? Highlight its significance for a society and individual.