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

Which is true? A 11.949 > 12.000 B 14.887 < 14.097 C 17.0010 > 17.0100 D 19.0929 < 19.7893
Negative free cash flow does not automatically signal poor performance. a. True b. False
Which kind of molecule does transcription produce?
why is it important to keep a microscope at least 10 cm from the edge of thr table?
Help please. I need this asap. It's worth 20 points
At which stages in meiosis is DNA condensed into chromosome
how to right 100,203 in two other forms
The mormon practice of polygamy categorized them as a ___ before they
(b) we often read that iq scores for large populations are centered at 100. what percent of these 78 students have scores above 100? (round your answer to one d
________ replaces perceived reality with a different world.