Log in
← All problems

Swap keys and values

easyDictionaries10 XP

d maps strings to strings, and no two keys share a value. Return a new dictionary (JavaScript: object) that maps each value back to its key.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 1 hidden tests.