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

3/4 (x - 3) - 5 = 1/8 ( x - 1 )
1.19 as a percent please
Which of the following is not a function of cerebrospinal fluid? O acts as a transport medium for nutrients O provides cushioning for delicate neural tissues O
what was a disease called back in the 1200's
Can Somebody tell me how to pronounce these in nepali??Hello:Goodbye:Yes:No:Good morning:Good Afternoon:Good night:Are you Hungry?:NO LINKS!!!!!!!!!!!!!!!
the pen is __ the box​
A. Identify the percentage of baby boomers who identified as Independents in 2014. B. Describe a trend in the data. C. Explain how that trend might affect polit
PLEASE HELP ME ON THIS QUESTION IF YOUR REALLY SMART TO ANSWER IT!!
A car travels 100 kilo metre due east in 2 hours. it then travels 50 kilo metre south in hour. what is its average velocity?
Cellular Respiration crossword puzzle pls help​