Q. Write the output of the following
Code:
s=0 L = [2, 4, 6, 8, 10] for i in range(1,len(L),1): s = s + L[i] print(s)
β
Correct Answer: (A)
28
s=0 L = [2, 4, 6, 8, 10] for i in range(1,len(L),1): s = s + L[i] print(s)
You must be Logged in to update hint/solution