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

What is the answer to 7+6/(-7+9)^2
write two expressions where the solution is 41.
A gallon of punch (128 ounces) is poured into 12 ounce glasses. A) How many glasses can be filled to the top? B) How many galsses are needed to hold all of the
Which of the following is the largest ethnic group in China? 1. Han 2. Tibetan 3. Uighurs 4. Hui
_+_+_=30 (1,3,5,7,9,11,13,15)
five sixths plus one twelfths
Which is the most likely way that a governor would raise revenue for a new state education program? A. by getting approval from the state comptroller B. by aski
what is cube root of 711
Typically, a heroin abuser may inject up to ___ a day. A. 10 times B. 7 times C. 2 times D. 4 times
In a bear population, the allele frequency of a gene for brown fur increases from 15 percent to 25 percent. What is happening to the population of bears? A. The