mnagaoormeeran
mnagaoormeeran mnagaoormeeran
  • 18-12-2020
  • Computers and Technology
contestada

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])

​

Respuesta :

PlayersZero PlayersZero
  • 18-12-2020

Answer:

90

34

45

23

Explanation:

Executed the code on my computer locally. That was the result :)

Answer Link

Otras preguntas

what are two numbers that mutiply to 8 and add up to 6
Discuss two ways which advocacy campaign can raise awareness
The goal of _____ is to supply proof of guilt beyond a shadow of doubt. reconstruction dusting for fingerprints protocol questioning witnesses
Which cell division phase is shown in the image? A) metaphase B) anaphase C) prophase D) telophase
10 POINTS FOR THE CORRECT ANSWER PLEASE HELP
Choose the correct indirect speech for the given sentence. It's been raining since this afternoon. * He said it has been raining since afternoon. He announced i
draw a line representing the "rise" and a line representing the "run" of the line. state the slope of the line in the simplest form.
The Persian Gulf War was similar to the previous proxy wars of the Cold War Era. True False
what's the answer??75÷0.5×3=​
Help? which one is it