5. Given the dictionary x = {‘k1’: ‘v1’, ‘k2’: ‘v2’, ‘k3’: ‘v3’}, create a dictionary with the opposite mapping i.e., write a program to create the dictionary as : inverted_x = { ‘ v1’ : ‘ k1’ , ‘ v2 ‘ : ‘ k2 ‘ , ‘ v3 ‘ : ‘ k3 ‘ } sa 11 cs chapter 13, sa 11 ip chapter 8 / PythonCSIP CS IP 5. Given the dictionary x = {‘k1’: ‘v1’, ‘k2’: ‘v2’, ‘k3’: ‘v3’}, create a dictionary with the opposite mapping i.e., write a program to create the dictionary as : inverted_x = { ‘ v1’ : ‘ k1’ , ‘ v2 ‘ : ‘ k2 ‘ , ‘ v3 ‘ : ‘ k3 ‘ } Read More »
6. Given two dictionaries say D1 and D2. Write a program that lists the overlapping keys of the two dictionaries, i.e., if a key of D1 is also a key of D2, the list it. sa 11 cs chapter 13, sa 11 ip chapter 8 / PythonCSIP CS IP 6. Given two dictionaries say D1 and D2. Write a program that lists the overlapping keys of the two dictionaries, i.e., if a key of D1 is also a key of D2, the list it. Read More »