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

Which method is the typical first step when scientists communicate their scientific results?
mt. kea and mt. loa in hawaii are two of the tallest volcanic mountains in the world. they are shield volcanoes that produce basaltic magma. what type of erupti
according to the lemon law, if you are not satisfied with the purchase of your new car, your new car can be returned or replaced?
Title IX of the Education Act of 1972 has to do with discrimination based on gender. discrimination based on religion. discrimination based on ethnic origin. d
Write a sentence that correctly uses a pair of homophones. Identify the homophones by listing them after your sentence. Explain what each word means. (5 points)
what line has slope of 5/8 and goes through the point (2,-3)
Which relation is a function? {(2, 3), (1, 5), (2, 7)} {(-1, 5), (-2, 6), (-3, 7)} {(11, 9), (11, 5), (9, 3)} {(3, 8), (0, 8), (3, -2)}
which is a "disease of affluence"? a. tuberculosis b. heart disease c. aids d. respiratory illness
What is the value of c? A. 71 B. 68 C. 38 D. 34
starting at home, nadia traveled uphill to the grocery store for 30 minutes at just 4 mph. she then traveled back home along the same path downhill at a speed o