Computer Science, asked by rxharrisns46, 5 months ago

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 jai696
1

Output:

90

34

45

23

Explanation:

It will only print items if the index of the item is even.

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions