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

The Industrial Revolution has been described as a mixed blessing. Do you agree or disagree? Support your answer with text references
Many times, the molecules join to form long chains with what kind of backbone?
What was the most direct cause for the beginning of America's involvement in Cuba just prior to the outbreak of hostilities? the U.S.S. Maine being blown up Ame
of the 95 children in 6th grade 3/5 went to holiday parties how many students went to holiday parties in all
Constantine I moved the capital of the Roman Empire from Rome to Byzantium because he:
of the 95 children in 6th grade 3/5 went to holiday parties how many students went to holiday parties in all
What made americans cautious about playing too much power in the hands of a single ruler?
use formula and available in a sentence
what fraction is equivalent to -0.12
How do rain and snow remove particles from the atmosphere