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

How did Niccolo Machiavelli’s book The Prince set him apart from other writers of the Renaissance?
What's the other word stubborn; inflexible
example of onomatopoeia in the seven ages of man
Solve the quadratic by factoring 2X²-2X-12=0
write in decimal form fourteen and eighty-Four hundredths
Which of the following steps is not critical in the creation of Bt corn?a.Cut out a piece of DNA from a DNA molecule.b.Splice a piece of DNA into DNA from anoth
name a metal that doesn't conduct electricity
what is glossities and deficiency
A sound wave of 70 cm travels 840 m in 2.5 sec. What is the velocity and frequency of sound?
Choose the more precise measurement in the pair.  A .) 6.7 mi or  B.) 6 mi