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

Identify the following. Where is he going? fragment simple sentence complex sentence
the length of a rectangle is 9 centimeters more than the width. the area is 112 square centimeters. find the length and width of the rectangle
Brianna is getting materials for a chemistry experiment her teacher gives her a container that has 0.15 L of liquid in it Breonna needs to use 0.4 of this liqui
How do work this problem 1/10 of 90 is
2/6 in its simplest form
Verify (2cos2x)/(sin2x) =cotx - tanx
the pipe is leaking at 1.5 cups per day about how many gallons per week is the population
Si la hija de Maria es la Madre de mi hija entonces Que soy yo de Maria
The area of a square game board is 144 sq. in. What is the length of one of the sides of the board?
What economic activity is at the heart of mercantilism