Q. What is the output of `dict(zip(['a', 'b'], [1, 2]))`?
β
Correct Answer: (A)
{'a': 1, 'b': 2}
Explanation: `zip()` pairs up elements, and `dict()` converts them into key-value pairs.