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

Data Analyst Environment Protection and Climate Change Department Jobs 2025

Habib University Admission Process

Government University and Collage Faisalabad ( GCUF ) Admission Criteria All Departments

LECTURER (ENGLISH) PPSC Jobs 14/2025 in INSPECTORATE OF MINES, PUNJAB, MINES & MINERALS DEPARTMENT

What is a NullPointerException, and how do I fix it?

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

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

Palm Reading in Islam : Is It Permissible? A Faith-Centered Guide

The Process of Arresting a Pakistani Citizen under Pakistani Law

Calculate and print each student average using Python