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

If an ant crawls 1 meter in 25 seconds, what is the ant’s speed?
Can some one help me with this Please help
Waves A and B have the same speed, but wave A has a shorter wavelength. Which wave has the higher frequency?
Compare and contrast the three classes of levers.
What is the value of this please help
How much is this shaded Please help
A stadium can hold 20,000 people when it is full. The table below shows the number of people that attended concerts at the stadium over a 3-day period. Day Nu
Compare and contrast the three classes of levers.
Tom has twice as many marbles as Luke. Together they have 39 marbles. How many marbles does Tom have?
the formula for the surface area of a pyramid is: SA=1/2LP+B . which equation solves formula for p