A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Given a record dict and a mapping dict (old_key -> new_key), return a new dict where keys listed in mapping are renamed to their new names. Keys not in the mapping pass through unchanged.
Summary
Old names out. New names in.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.