Task: Find All Occurrences of a Key in Nested Dictionaries and Lists
Task: Find All Occurrences of a Key in Nested Dictionaries and Lists: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that traverses nested data structures (dictionaries and lists of arbitrary depth) and extracts all values associated with a specific key.
The task
You need to write a Python script that traverses nested data structures (dictionaries and lists of arbitrary depth) and extracts all values associated with a specific key.
Part of PrimeIntellect/Terminal-Lego-15k.