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

How many mexican americans won the medal of honor in World war 2?
Who is Winston Churchill? Why would Americans trust what he has to say about the Soviet Union?
What factor most likely determined how often a nomadic group moved?
Dayton is due north of Richmond, and Easton is 16 mi due east of Richmond. Dayton is 32 mi from Easton. How far apart are Dayton and Richmond? Round to the near
Read the passage from a student research paper. Research Paper The Johnstone family of Cheyenne, Wyoming has created a "family economy” in which members barter
What are the zeros in the function f(x)=3x^2-3x-6
Select the sentence containing the gerund. Playing the piano takes skill. The girl playing the piano is skilled.
Given f(x) = –5x + 1, what is f(–2)? A. 3/5 B. -9 C. 11 D. 1
Which loan will typically offer the lowest interest rate?
What mountain range is located south of the Tropic of Capricorn