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 were the contributions of the Harappan civilization?
The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
josh wanted to buy a bicycle but didn't have enough money. After josh told his troubles to sam slick, sam said,"I can fix that. see that fence? each time you ju
find the sum. write each mixed number in simplest form 4 7/8 + 5 1/4
What were the contributions of the Harappan civilization?
Does an owl have a backbone?
What's 5 divided by x squared explain
The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
find the sum. write each mixed number in simplest form 4 7/8 + 5 1/4
a lunch bill including tax, is divided among you and 5 friends. everyone pays less than $8.75. write and solve an inequality that describes the total amount of