Loading...
Deep Get
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
API responses are deeply nested JSON objects and we sometimes need a value several levels down. Traverse a nested dict using a list of keys and return the value at that path. Return None if any key along the path is missing.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.