Question: Consider the following program code: sum for i in range(4, 0, -1): sum += i print(sum) What is the result of running this program code?

Consider the following program code: sum for i in range(4, 0, -1): sum += i print(sum) What is the result of running this program code? Explain why! 0 4. 6 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
