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
5
Answer:
the output will be 0 3 5 7 9
Similar questions
English,
4 months ago
English,
4 months ago
Computer Science,
4 months ago
Hindi,
9 months ago
Computer Science,
9 months ago
Math,
1 year ago