~/ learn/ python-from-zero/ cards/ Loops
1 of 1

Sum the numbers 1 through 4 with a loop.

Sum the numbers 1 through 4 with a loop.

Answer

total = 0 for i in range(1, 5): total += i print(total)

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/98d2f028-b434-4d72-920d-2f7c7b070b73/flashcard utf-8 LF