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

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

Differentiate between role-play and simulation. Discuss the use of each for making teaching learning effective at elementary level?

Use a nested dictionary of students and their subject marks Using Python

Explain the concept of economics of higher education in Pakistan. What are different ways of financing higher education in Pakistan?

Merge Two Dictionaries using Python

Jobs in Excise and Taxation

DHA Karachi Jobs 2025 For Accountant & Accounts Clerk

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

Visiting / Teaching Faculty Jobs in University of Veterinary and Animal Sciences Lahore 2025

Create a dictionary with keys as subjects and values as marks. Print marks for a given subject using Python