promptdojo_

Loops — read it, predict it, then trust it — step 9 of 10

Write a loop that sums every number in nums = [10, 20, 30, 40] and prints the total.

Expected output:

100

full-screen editor opens — close anytime to keep reading.