HF RL Explorer

Task: Sort a List of Objects by Attribute in Python

Task: Sort a List of Objects by Attribute in Python: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that sorts a list of objects based on a specific attribute of those objects. Specifically, you will work with Tag objects that have name and count attributes, and…

The task

You need to write a Python script that sorts a list of objects based on a specific attribute of those objects. Specifically, you will work with `Tag` objects that have `name` and `count` attributes, and sort them by the `count` attribute in descending order.

Part of PrimeIntellect/Terminal-Lego-15k.