Computer Science, asked by kanishkasainiph123, 20 days ago

Write a python program to create a dictionary to store names and marks obtained in 5 subjects and display the names of students who have marks below 33.

Answers

Answered by cheemtu
1

n=int(int(input("Enter n: ")))  

d={}  

for i in range(n):  

   roll_no=int(input("Enter roll no: "))  

   name=input("Enter name: ")  

   marks=int(input("Enter marks: "))  

   d[roll_no]=[name,marks]  

for k in d:  

   if(d[k][1]>33):  

       print(d[k][0])

pls mark brainliest

Similar questions