HF RL Explorer

Task: Reverse / Invert a Dictionary Mapping

Task: Reverse / Invert a Dictionary Mapping: a task in Terminal-Lego-15k (Harbor dataset). Your task is to write a Python script that inverts/reverses a dictionary mapping. Given a dictionary where keys map to values, you need to create a new dictionary where the original values become keys and…

The task

Your task is to write a Python script that inverts/reverses a dictionary mapping. Given a dictionary where keys map to values, you need to create a new dictionary where the original values become keys and the original keys become values.

Part of PrimeIntellect/Terminal-Lego-15k.