Computer Science, asked by ketakimodak77, 4 months ago

Write a program that prints the sum of the even-indexed elements of L, and 3
minus the sum of the odd-indexed elements of L.
For example:
For list L=[1,2,3,4,5,6) it should print -3that is (1+3+5)-(2+4+5)
For list L=[1,2,3] it should print 2, that is (1+3)-(2)​

Answers

Answered by abhiramkc2000
0

Answer:

bbdjdjsjjsdhkzoqjssgdndk

Similar questions