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 ideas and inventions encouraged Europeans to begin overseas exploration?
what do you think was Powhatan's overall message to john smith
5 facts about the vacuole
What state directly east of colorado and directly north of Oklahoma?
Nephritis is caused by __________. A. inflammation in the kidney B. inflammation in the pancreas C. inflammation in the bladder D. inflammation in the bowel
Jimmy has 30/100 of a dollar. Which shows this amount in decimal form? For my sister.
how did you choose what predictions to write on your origami predictor
is 5/7 a rational number
What is the least amount of money that rounds to 105.40
Please help solve number 30 and 31 please-show work to help me unerstand, thank you. :)