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

you are planting a rectangle garden. it is 5 feet longer than 3 times its width. the area of the garden is 250 feet. find the dimensions
Why is living important
Someone please help me : evaluate 3st to the second power + 2s if s=5 and t=3??
why does the same side of the moon always face the earth?
pls help me with this  11-3 and 11-4 u press the link below
you are facing east. you turn left, then left again, then about face, then right. which direction are you finally facing?
What is the base of Apothecary
If y^8 = 4 and y^7 = 3/x, what is the value of y in terms of x? (A) 4x/3 (B) 3x/4 (C) 4/x (D) x/4 (E) 12/x
simplify p8/p2can you help me with this question...anyonnnneee...????
What are some behavioral adaptations for a porcupines?