Loading...
The Multiplication Trail
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
A financial model tracks compound growth where each period's value is multiplied into a running total. Write a function that takes a list of numbers and returns a list of cumulative products where each element is the product of all previous elements including itself.
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.