Loading...

The Config Blender

A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
easy
Seniority
junior, mid

Problem

The deployment system has base configs and environment-specific overrides, both as nested dictionaries. A simple dict update clobbers nested keys the team still needs. Write a function that deep-merges two config dicts so overrides win at every level without wiping out unrelated nested settings.

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.