2 What will be the output of the following code segment:
B=[90,12,34,56,45,43,23,100]
for i in range (len(B)):
if i%2 == 0:
print(B[i])
Answers
Answered by
1
Output:
90
34
45
23
Explanation:
It will only print items if the index of the item is even.
Similar questions