Question 1 Dictionary Nested Data

Store and Manage 10 Students Details in a Dictionary

Write a Python program to create a dictionary storing records of 10 students with roll numbers as keys and nested dictionaries (name, age, marks) as values.

Solution Code Screenshot Click image to zoom
10 Students Details Dictionary Solution
Question 2 Dictionary Duplicate Values

Check if Dictionary Values Contain Duplicates

Write a Python program to determine whether any duplicate values exist across key-value pairs in a dictionary.

Solution Code Screenshot Click image to zoom
Check Duplicate Values Solution
Question 3 Dictionary Records

Store and Process Employee Records in a Dictionary

Write a Python program to maintain employee records with employee IDs as keys and departments, names, and salaries as values, enabling salary lookups.

Solution Code Screenshot Click image to zoom
Employee Data Dictionary Solution
Question 4 Dictionary Inversion / Swap

Invert a Dictionary (Swap Keys and Values)

Write a Python program to swap the keys and values of an existing dictionary, creating an inverted dictionary.

Solution Code Screenshot Click image to zoom
Inverted Dictionary Solution
Question 5 Dictionary Filter / Lookup

Student Marks Pass/Fail Classification in Dictionary

Write a Python program that takes student names and scores into a dictionary and classifies each student into 'Pass' or 'Fail' categories based on their marks.

Solution Code Screenshot Click image to zoom
Dictionary Marks Pass Fail Solution
Question 6 Dictionary Keys & Values

Map Month Names with Number of Days as Key-Value Pairs

Write a Python program to build a dictionary mapping month names to the number of days they contain, and display all keys, values, and items separately.

Solution Code Screenshot Click image to zoom
Month Names Values Keys Solution
Question 7 Dictionary Key Intersection

Find Overlapping (Common) Keys in Two Dictionaries

Write a Python program to compare two dictionaries and identify all keys that exist in both dictionaries.

Solution Code Screenshot Click image to zoom
Overlapping Keys Solution
Question 8 Dictionary Phone Directory

Phone Directory Lookup Using Dictionary

Write a Python program to create a contacts dictionary of names and phone numbers, allowing the user to search for a name and retrieve their phone number.

Solution Code Screenshot Click image to zoom
Print Phone Number Solution
Question 9 Dictionary Store Inventory

Product and Price Inventory Store in a Dictionary

Write a Python program to store grocery product names and their unit prices in a dictionary and calculate total cart amounts on checkout.

Solution Code Screenshot Click image to zoom
Product Price Store Solution
Question 10 Dictionary Competition Winners

Record Competition Winners and Ranks in a Dictionary

Write a Python program to store student competition winners categorized by event name or rank position using dictionary structures.

Solution Code Screenshot Click image to zoom
Student Competition Winners Solution
Question 11 Dictionary Sports Standings

Track Sports Team Records (Wins, Losses) in a Dictionary

Write a Python program to maintain team names along with their total wins, losses, and win percentages using a dictionary.

Solution Code Screenshot Click image to zoom
Team Record Win Loss Solution
Question 12 Dictionary Total & Percentage

Compute Total Marks and Percentage from Subject Dictionary

Write a Python program storing subject names as keys and obtained marks as values, calculating the cumulative total and overall percentage.

Solution Code Screenshot Click image to zoom
Total Marks and Percentage Solution
Question copied to clipboard!