Q. What will be the output of the following code snippet?
Code:
a = {'Hello':'World', 'First': 1}
b = {val: k for k , val in a.items()}
print(b)
β
Correct Answer: (B)
{'World': 'Hello', 1: 'First'}