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

????????????????????????
what does perpendicular mean? quick! im getting timed!
Which sentence is parallel? A. He ran down the steps, jumped in his car, and quickly begins to drive off. B. He ran down the steps, jumped in his car, and quick
What are the similarities (in terms of personality) between Anne Frank and Otto Frank in the play, "The Diary of Anne Frank"?
What impact did the 1968 Democratic National Convention have on Vietnam and during the war and this time. Its for an essay. Please help
Peter bought 5kg of meat he used 1.10kg to make hamburgers the rest he used to make 13 portions of spaghetti how much meat did he use per portion of spaghetti
Which are examples of resonance? Check all that apply. the volume on a stereo being turned up a note being played on a saxophone an opera singer breaking a glas
The best time to exercise is
If it takes 5 seconds for the sound of thunder to travel 1 mile, how many miles was the person from the lightning bolt?
What i's 8684÷16 I need help