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

A jump rope is shaken producing a wave with a wavelength of 0.5m with the crest of the wave passing a certain point 4 times per second. What is the velocity of
How old is Barack Obama?
A stone falls from the top of a 125m high cliff.How long does it take to reach the sea?I know that S[distance] is 125m, and that A[acceleration] is 10m/s². Cons
283,573 to the nearest ten thousand
A book store bought 160 copies of a book from the publisher for 4,000. If the store gives away 2 books, how much money will it lose?
find the square root of 7 1/9
consider the curve y=ln(3x-1).let p be the point on the curve where x=2. a) a write down the gradient of the curve at P. b) The normal to the curve at P cuts th
Complete the square to solve for x:2x∧2-5x-3=0
How did women's political status change from 1770 to today
283,573 to the nearest ten thousand