HF RL Explorer

Task: Sort a Dictionary by Key in Python

Task: Sort a Dictionary by Key in Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that sorts a dictionary by its keys. The script should read an unsorted dictionary and output a new dictionary with keys arranged in ascending order.

The task

Write a Python script that sorts a dictionary by its keys. The script should read an unsorted dictionary and output a new dictionary with keys arranged in ascending order.

Part of PrimeIntellect/Terminal-Lego-15k.