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

what is the collective noun of soldiers
Billy has a marble jar that contains 5 orange marbles, and 2 purple marbles. He will draw two marbles from the jar one at a time without replacing the first mar
which of the following changes will accompany the loss of lung elasticity associated with aging?
the resistance of wood fibers sliding past one another lengthwise when a wood member is placed in a position where it may bend under a load. (True or False)
followers oftentimes become passive and inactive around toxic leaders because ______.
You are advised to spe 1. Write a letter to your friend describing your role model, stating what you have learnt from this person and which of his/her qualities
the majority of the revenues in hotels are usually generated from the f&b department. true or false
2. The two-way table shows the number of students that do or do not do chores at home and whether they receive an allowance or not. Find and interpret the relat
__________ is the cartesian strategy of deliberately doubting everything, even if it is not likely, and accepting as true only what can be known with absolute c
office visits may be grouped on the insurance claim form if each visit:____.