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
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
Biology,
10 days ago
English,
10 days ago
Hindi,
20 days ago
Computer Science,
20 days ago
Social Sciences,
9 months ago
Biology,
9 months ago