Project 27: Task Completion Tracker
Data Engineer
Builds on these lessons
Current Task
Objective
np.cumsum() returns the running (cumulative) sum of an array — each output element is the sum of every input element up to that point.
Task: compute the running total of tasks completed per day and print it.
index.py
import numpy as np
completed_per_day = np.array([2, 5, 1, 4, 3])
running_total = np.cumsum(completed_per_day)
print(running_total)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview