amilylove662053
amilylove662053 amilylove662053
  • 03-11-2020
  • Computers and Technology
contestada

How many passes will it take to find the 20 in this list? (python)

10, 12, 14, 16, 18, 19, 20

3

1

2

4

Respuesta :

StreetFighterLan123
StreetFighterLan123 StreetFighterLan123
  • 05-11-2020

Answer:

1

Explanation:

What do you mean by a pass? A pass through each number in the list?

for x in numLst:

    if x == 20:

         return True

This would run through the list once, as you're just checking if each element is 20 in this loop.

Answer Link
24jmiller99 24jmiller99
  • 11-12-2020

Answer:

2

Explanation:

on edge right

Answer Link

Otras preguntas

Why are solids good at transferring heat through conduction? A.The particles are close together. B.The particles do not move. C.The particles give off electroma
Which ordered pair is a solution of the equation y = x - 2 a. (3,1) b. (1,3) c. (-1,3) d. (3, -1)?
Susie is 5 feet and 6 inches tall. what would her height be in cetermeters? (1 foot=12 inches, 1 inch = 2.54 centimeters) 25.984 centimiters 167.64 centimiters
which of the following best describes the relationship between the structure of the cell membrane and its function?
Who gained control of the Congo region after King Leopold II was deposed for human rights violations?
9,000,000 in scientific notation
y-3=-3y-43 solve the equation
change the fraction 13/20 to a decimal
What is it please tell me
The geosphere refers to the _____. crust mantle core All of the above, at the same time.