Advertisements
Advertisements
Question
For the SMIS System given in Chapter 5, let us do the following: Write a program to take in the roll number, name, and percentage of marks for n students of Class X. Write user-defined functions to
- accept details of the n students (n is the number of students)
- search details of a particular student on the basis of roll number and display the result
- display the result of all the students
- find the topper among them
- find the subject toppers among them
(Hint: use Dictionary, where the key can be roll number and the value is an immutable data type containing the name and percentage).
Let’s peer review the case studies of others based on the parameters given under “DOCUMENTATION TIPS” at the end of Chapter 5 and provide feedback to them.
One Line Answer
Solution
Do it Yourself.
shaalaa.com
Introduction to Dictionaries
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Write a Python program to find the highest 2 values in a dictionary.
Write a Python program to create a dictionary from a string.
Note: Track the count of the letters from the string.
Sample string: 'w3resource'
Expected output : {'3': 1, 's': 1, 'r': 2, 'u': 1, 'w': 1, 'c': 1, 'e': 2, 'o': 1}