Question: You are given a dictionary named Quiz_marks as given below. quiz_marks = {'Leonard': 18, 'Sheldon': 20, 'Raj': 19, 'Howard': 17, 'Penny': 10, 'Amy':20, 'Bernadette': 15}

You are given a dictionary named Quiz_marks as given below.

quiz_marks = {'Leonard': 18, 'Sheldon': 20, 'Raj': 19, 'Howard': 17, 'Penny': 10, 'Amy':20, 'Bernadette': 15}

Your job is to make two different dictionaries called even_quiz_marks and odd_quiz_marks. In the even_quiz_marks dictionary only the people who got even marks in the quiz will be listed and in the odd_quiz_marks dictionary only the people who got odd marks in the quiz will be listed. The two dictionary will look as follows:

even_quiz_marks = {'Leonard': 18, 'Sheldon': 20, 'Penny': 10, 'Amy':20}

odd_quiz_marks = {'Raj': 19, 'Howard': 17, 'Bernadette': 15}

Step by Step Solution

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 Databases Questions!