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

14. Pete has a hemothorax. What is his pleural cavity full of? A. Lymph fluid B. Water C. Air D.Blood
What is the mean absolute value of the data set below? pls answer ASAP
Household bleach has a pH between 12 and 13. From this information, which of the following BEST describes the bleach solution? A. The solution is acidic, meani
plzz help need help need help
A man owes $5000 on his credit card. The APR is 20%. If he doesn’t repay any of the debt, how much will he owe after 4 years.
PLEASE HELP!!!!!! ILL GIVE BRAINLIEST *EXTRA 40 POINTS** !! DONT SKIP :((
A basketball is thrown for a free throw at 10m/s an angle of 20 degrees, makes it into the hoop and lands on the ground. Find the initial velocity in the y dire
Which expression is equivalent to
What was one economic consequence of the Black Plague in Europe? A. It increased wages for workers. B. It increased the value of farm land. C. It decrease
Where is the church Ponyboy and Johnny need to go to? a behind the park b downtown c Jay Mountain d Tulsa