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

In a complete sentence, define gymnosperm.
what dynasty was started by ali kolon
2m+3=m-3 how do you do this problem?
Which division of time during Earth’s history came first? a. The Paleozoic Era b. The Cenozoic Era c. The Late Precambrian d. The Mesozoic Era
Please help meNa2SO3+...=H2SO4CaSO3+...=H2SO4SO2+...=MgSO3Ca3PO4=PH3PO4+...=Ca(H2PO4)2P+...=Mg3P2SiO2+...=Mg2Si
Please point out the passive sentence in this paragraph and explain why it is a passive sentence. New evidence for life on other planets was revealed by scienti
Which division of time during Earth’s history came first? a. The Paleozoic Era b. The Cenozoic Era c. The Late Precambrian d. The Mesozoic Era
A 10-meter long ramp has a mechanical advantage of 5. What is the height of the ramp?
If a² = 12, then a4 =
In what time will $400 amount to $512 if the simple interest is calculated at 14% per annum?