Computer Science, asked by sharvityagi44, 17 days ago

Create a List that stores marks of 10 students and calculate the sum of odd elements.python

Answers

Answered by Kalihacker
0

Answer:

sum=0

marks=[x*10 for x in range(1,11)]

for i in range(1,11):

if i%2!=0:

sum=sum+marks[i]

else:

continue

print(sum)

Similar questions