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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started