Task: Sort a List of Lists/Tuples by Element at Given Index
Task: Sort a List of Lists/Tuples by Element at Given Index: a task in Terminal-Lego-15k (Harbor dataset). You need to create a Python script that sorts a list containing either lists or tuples by a specific element index within each sub-list/tuple.
The task
You need to create a Python script that sorts a list containing either lists or tuples by a specific element index within each sub-list/tuple.
Part of PrimeIntellect/Terminal-Lego-15k.