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 vessel of 120ml capacity contains a certain amount of gas at 35°C and 1.2 bar pressure. The gas is transferred to another vessel of volume 180ml at 35°C. What
a) If 32/32 rose plants are planted along the length and the breadth of a squaregarden, how many plants are there in the garden?​
Which two parts of the story show that the Moon wishes he could be different? excerpt adapted from How the Moon Became Beautiful One day, the Moon said, "I do n
Why do you think the Framers did not believe the Bill of Rights should limit the scope of government at the state level? ​
How can you explain something is porportinal
Help me..............
The person who asked to see the full pic here it is & if anyone wants to help out also
Not all enzymes work inside cells in the body. ………………… enzymes are produced by specialized cells in the pancreas and digestive tract
When do they pay in jalepeno tree
Find the value of X.3(4x + 8) = - 35+23​