Computer Science, asked by tusharpal7968, 9 months ago

What will be the output of the following code segment:
myList = [1,2,3,4,5,6,7,8,9,10]
for i in range(0,len(myList)):
if i%2 == 0:
print(myList[i])

Answers

Answered by AnindaBasu
5

Answer:

the output will be 0 3 5 7 9

Similar questions