HF RL Explorer

Task: Traverse a List in Reverse Order in Python

Task: Traverse a List in Reverse Order in Python: a task in Terminal-Lego-15k (Harbor dataset). The script should output each index and value pair on a separate line. For the sample list 'a', 'b', 'c', 'd', 'e' , the output should show: - Index 4 with value 'e' first - Index 3 with value 'd'…

The task

The script should output each index and value pair on a separate line. For the sample list `['a', 'b', 'c', 'd', 'e']`, the output should show: - Index 4 with value 'e' first - Index 3 with value 'd' second - And so on until Index 0 with value 'a' last

Part of PrimeIntellect/Terminal-Lego-15k.