Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Find the intersection of dict1, dict2, and dict3 and store the result into my_dict without changing dict1, dict2, or dict3. Note that original dictionaries should
Find the intersection of dict1, dict2, and dict3 and store the result into my_dict without changing dict1, dict2, or dict3. Note that original dictionaries should stay untouched .
dict1 = dict(key2='Python is still cool', key1=123)
dict2 = {'key1': 123, 'special_key': 'secret'}
dict3 = dict([('key2', 456), ('keyX', 'X'), ('key1', 123)])
# 'Your impelementation'
assert my_dict == {'key1':123}
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