Your question is Recursive Nested Data Search. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
How would you write a function to find a value inside a nested dictionary using recursion?
Implement find_value(data, target) to return True if target appears as a value at any depth, including the top level, and False otherwise. Dictionary keys are not searched. Assume the input contains dictionaries and non-dictionary values only, with no cyclic references.
data is a dictionarydef find_value(data, target):