Create a List that stores marks of 10 students and calculate the sum of odd elements.python
Answers
Answered by
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