The Column Zipper
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L3
Problem
Given headers (list of column names) and rows (list of row lists, each of the same length as headers), return a list of dicts where each dict maps header to its row's value.
Summary
Headers on top, values below, dict in the middle.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.