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

I am in serious need of geometry help Help pls!!!!
Accost but "on the contrary" in each sentence
What can be concluded when stars are different colors? Select one: a. They have different sizes. b. They have different temperatures. c. They are different a
The Congressional budget act of 1974 requires Congress
Use the elimination method to solve the system of equations. Choose the correct pair
I need help with this can you plz help me plz help me badly I need your help plz help me ASAP
The dollar has appreciated against the currencies of many of the U.S.'s top trading partners. What outcome could this fall in foreign price levels have on aggre
X+y=-9 -1x-2y=-5 Solve using substitution PLEASE
Click to read "Loveliest of Trees, the Cherry Now by A. E. Housman. Then answer the question. Why does Housman emphasize the word now in the poem?A. To allow th
In your own words, explain what happens during conception.