Lag Column
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L3
Problem
Given a list of values, return a list of the same length where each position i holds the value at position i-1 in the input. The first position (no predecessor) is None.
Summary
What came before this row?
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.