Skip to main content

SQL aggregation · 5 minutes

Trace a repeated refund amount

Get feedback on your answer. No account needed.

What does this Python code print?

lines = [9, 6, 5]
refunds = [2, 3]
print(sum(refund for line in lines for refund in refunds))

Enter the output on one line.

Your answer
Need a small hint?

Each sale line contributes both refund records.

This helps us choose when to schedule your next review.