A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Given two lists a and b (possibly of different lengths), return a list of 2-element lists [a_i, b_i] pairing by index. When one list is shorter, pad its missing positions with None so the output length equals max(len(a), len(b)).
Summary
Two sides. No value left behind.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.