Introduction
Inverting a dictionary means swapping its keys and values. This helps when you want to look up original keys by their values.
You have a dictionary of country codes to country names and want to find the code by name.
You store usernames as keys and user IDs as values, and want to find usernames by ID.
You have a mapping of product IDs to product names and want to find the ID by name.