~/ 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/166250f4-2654-4cc2-ae70-ebad706e65e9/flashcard utf-8 LF