Deep Get
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
Given a possibly-nested dict d and a list of keys, traverse d[keys[0]][keys[1]]... step by step. Return the value found at that path, or None if any intermediate key is missing.
Summary
Nested deep. Reach in and grab it.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.