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

4(X-1)-3(X^2+2X+3)-7(X+7)
State whether the equation is a linear equation in one variable or not. –2x(–2 – x) = x + 1
How does the modern era differ from the post-classical era?
What is the answer to 5x-7y=14
What makes a pear or fig gritty?
How do you write this in a algebraic equation: 6 more than 7 times a number is 41
Need the values IN FRACTIONS (no mixed numbers or decimals)1. -1/2^12. -1/2^23. -1/2^34. -1/2^45. -1/2^5
90 students went to the zoo three had a hot dog,soda and a Popsicle ;24 have a hot dog; five had a hot dog and soda; 33 had a soda ;10 had a soda and Popsicle;
what does t amo mean
if a+b+c=0 for a,b,c then prove a²/bc+b²/ca+c²/ab=3.