LogiQuest
Back to Control Flow
3

What is the output of the following code?

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

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.