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

a) 2x + 10 = 18 c) 5a - 12 = 23 b) 3(x - 1) = 6 d) 5x = -75​
Describe the health care system in Cuba:
In the formula C = pm, p stands for. OA. price per item OB. promotion OC. period OD. percent
Jacob has a gift card valued at $50 for his favorite hobby shop. He buys a model plane that costs $42.95 and a display case for the plane that costs $22.46. How
What is the relationship between metadata and a file extension? Responses Metadata is composed of extensions. Metadata is composed of extensions. An extension i
The tempatire was -13°f and then rose 9°f
What would you say to or do about a team member in the following situations: 1. Is always late. 2. Whispers to others or starts side conversations during team m
day of the builders:would you done the same thing if you were the narrator?
From the readings, powerpoint presentation, and video clips, write a 200-300 word essay answering the following questions. What were the factors that led to the
does right circular cone have apex?