Question: Given a dictionary of students name with their assigned values: students = {student_1 : 13, student_2 : 17, student_3 :9, student_4:15, student_5:8, student_6: 14,

Given a dictionary of students name with their assigned values: students = { Write a python program to partition this dictionary into three sub-dictionaries (group1, group2, group3)

Given a dictionary of students name with their assigned values: students = {"student_1" : 13, "student_2" : 17, "student_3" :9, "student_4":15, "student_5":8, "student_6": 14, "student_7": 16, "student_8": 12, "student_9": 13, "student_10": 15, "student_11":14, "student_112":9, "student 13": 10, "student 14" : 12, "student_15":13, "student_16":7, "student 17" : 12, "student_18":15, "student_19":9, "student_20":17) Write a python program to partition this dictionary into three sub-dictionaries (group1, group2, group3) based on the assigned values: group1 > 15 group2 10 group3

Step by Step Solution

3.34 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!