Question: Code is in python and is only asking for a function (no main). Please if possible upload a screen shot that is typed and indented

Code is in python and is only asking for a function (no main). Please if possible upload a screen shot that is typed and indented correctly if possible. Thank you Code is in python and is only asking for a function (no

Solve a Problem intersect Favorite E Show Header Language/Type: Author: Python Collections Maps Marty Stepp (on 2017/07/08) Write a function named intersect that accepts two dicts of strings to integers as parameters and that returns a new dictionary whose contents are the intersection of the two. The intersection of two dictionaries is defined here as the set of keys and values that exist in both dictionaries. So if some value K maps to value V in both the first and second dictionary, include it in your result. If K does not exist as a key in both dictionaries, or if K does not map to the same value V in both dictionaries, exclude that pair from your result. For example, consider the following two dictionaries: 'Janet: 87, Logan': 62, Whitaker: 46, Alyssa': 188, 'Stefanie': 80, Jeff': 88, 'Kim': 52, 'Sylvia': 95) ('Logan': 62, 'Kim: 52, 'Whitaker': 52, 'Jeff: 88, 'Stefanie' 80, 'Brian': 68, Lisa': 83, 'Sylvia': 87) Calling your function on the preceding dictionaries would return the following new dictionary: (Logan-62, Stefanie-88, Jeff-88, Kim-52 Do not modify the dictionaries passed in as parameters Type your Python solution code here: This is a function problem. Write a Python function as described. Do not write a complete program; just the function(s) above Sound F/x Highlighting Submit

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!