A tuple can be a dictionary key. What does print({(1, 2): "A", (3, 4): "B"}[(3, 4)]) show?
Log in to join the discussion.
Loading…