12th Byte

Wednesday, 2 December 2026

Dictionaries - Coding practice

 A school stores its student details as:

stu = {1: ['Asha', 32],

       2: ['Rohan', 78]}.

Write a program to:

>Accept the details of n students

into the dictionary.

>Update the marks of a given rollno.

>Search for a roll number entered by

the user. Display the name and marks

if found, otherwise display an error

message.

>Display the average Marks & the topper

>Delete a given roll no. 


on December 02, 2026 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2026 (28)
    • ▼  December 2026 (1)
      • ▼  Dec 02 (1)
        • Dictionaries - Coding practice
    • ►  November 2026 (3)
      • ►  Nov 24 (1)
      • ►  Nov 16 (2)
    • ►  September 2026 (2)
      • ►  Sept 09 (1)
      • ►  Sept 07 (1)
    • ►  August 2026 (6)
      • ►  Aug 30 (1)
      • ►  Aug 26 (1)
      • ►  Aug 19 (1)
      • ►  Aug 10 (1)
      • ►  Aug 09 (1)
      • ►  Aug 05 (1)
    • ►  July 2026 (9)
      • ►  Jul 29 (1)
      • ►  Jul 27 (1)
      • ►  Jul 19 (1)
      • ►  Jul 16 (1)
      • ►  Jul 15 (1)
      • ►  Jul 12 (1)
      • ►  Jul 08 (1)
      • ►  Jul 06 (1)
      • ►  Jul 01 (1)
    • ►  June 2026 (6)
      • ►  Jun 28 (1)
      • ►  Jun 22 (1)
      • ►  Jun 15 (1)
      • ►  Jun 11 (1)
      • ►  Jun 08 (1)
      • ►  Jun 03 (1)
    • ►  May 2026 (1)
      • ►  May 31 (1)
  • ►  2025 (1)
    • ►  April 2025 (1)
      • ►  Apr 09 (1)

Report Abuse

Search This Blog

Simple theme. Powered by Blogger.