q1. what is the output of the following code sum=0 for i in range(5): sum=sum+i print(sum) Solution: i=0,1,2,3,4 sum=0+1+2+3+4=10 q2. what is the output of the following code sum=0 for i in range(1,5): sum=sum+i print(sum) i = 1,2,3,4 sum=10 q3. what is the output of the following code sum=0 for i in range(1,6): sum=sum+i print(sum) i=1,2,3,4,5 sum=15 q4. what is the output of the following code sum=0 for i in range(1,10,3): sum=sum+i print(sum) i=1,4,7 1+4+7=12 q5. what is the output of the following code sum=0 for i in range(2,10,3): sum=sum+i print(sum) i=2, 5, 8 2+5+8=15