Python Dictionary Part-3

Q-1.Write a Python program to remove duplicates from Dictionary. Input: student_data ={‘rollno_1’:{‘name’: ‘Sara’ ,’class’: ‘V’, ‘subjects’: [‘english, math, science’]}, ‘rollno_2’:{‘name’:’David’, ‘class’: ‘V’, ‘subjects’: [‘english, math, science’]}, ‘rollno_3’:{‘name’:’Sara’, ‘class’: ‘V’, ‘subjects’: [‘english, math, science’]}, ‘rollno_4’:{‘name’:’Surya’, ‘class’: ‘V’, ‘subjects’: [‘english, math, science’]},} Output:{‘rollno_1’: {‘name’: ‘Sara’, ‘class’: ‘V’, ‘subjects’: [‘english, math, science’]}, ‘rollno_2’: Read more…

Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert