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

SIMPLE MATH WORD PROBLEM!! PLEASE HELP!!
Who wrote the famous revolutionary pamphlet common sense a. karl marx b. thomas paine c. simon bolivar d. giuseppe mazzini
Please help! Simple math question The equation needs to use x, y, and an =. Thanks!!!
Tanya is 62 inches tall she is 17 inches taller than mays.Write and solve an equation to find mays height.
Selena gomez wants to buy eight new headbands that altogether cost no more than $112. what is the possible cost, x, of each headband?
Choose the ratio that you would use to convert 1.5 miles to feet. remember that there are 5,280 feet in one mile
A roller coaster's velocity at the top of a hill is 10m/s. two seconds later it reaches the bottom of the hill with a velocity of 26 m/s. what was the accelerat
mining is considered the_ job in the united states
find the difference in simplest form. 2b/b^2-2b+1 - 2/b^2-2b+1
Determine if convergent or divergent using comparison tests