You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""#Q.1- Create a user defined dictionary and get keys corresponding to the value using for loop.
n1=int(input("enter total number of keys: "))
d1={}
for i in range(1,n1+1):
v=input("enter value of key: ")
d1[i]=v
l=[]
for j in d1:
l.append(j)
print("keys of dictionary is: ",l)
"""
#Q.2- Create a dictionary and store student names and create nested dictionary to store the subject wise marks of every student.Print the marks of a given student from that dictionary for every subject.