You are on page 1of 1

PCM_marks={}

for i in range(3):
key = input("Enter the student name: ")
if key in PCM_marks.keys():
field = input("What field do you want to update?")
while(field != "null"):
if field=="physics":
PCM_marks[key][0]=
else:
lst_marks=[]
print("Enter marks of student (physics, chem and math)\n")
for i in range(3):
lst_marks.append(int(input("Enter marks :")))
PCM_marks[key]=(lst_marks)
print(PCM_marks)

You might also like