def running_totals(values):
total = 0
result = []
for value in values:
total += value
result.append(total)
return result[ 2, 1, 5 ]
Self-contained Python programs paired with a concrete function call and the exact runtime output. Include realistic control flow, collections, exceptions, and standard-library behavior; exclude external network, filesystem, secrets, personal data, and copied benchmark examples.
Secured after final acceptance. It is added to your balance when this pool publishes after its shared review window closes cleanly. Rejected items do not qualify.
Platform-authored spec, open on delivery.
Measured pipeline stats for this dataset. A dash means the platform does not publish that measure for this pool.
Illustrative samples authored for the Execution Trace / Output Prediction dataset type.
def running_totals(values):
total = 0
result = []
for value in values:
total += value
result.append(total)
return result[ 2, 1, 5 ]
Approved public samples for this Execution Trace / Output Prediction dataset. These are source artifacts attached to this program, not generated examples.