In the code below, which statement(s) are part of the "for" loop body?
sum = 0 #LINE 1
for index in range(0,10): # LINE 2
sum = sum + index # LINE 3
print(str(sum)) # LINE 4
Responses
LINES 2 and 3 only
LINES 2 and 3 only
LINE 3 only
LINE 3 only
LINES 1, 2, and 3 only
LINES 1, 2, and 3 only
LINE 1 and 4 only
1 answer
LINES 2 and 3 only