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

poem that address perimeter area
someone please help me.
Why do biologists believe that a primitive choanoflagellate protist is the ancestor to all animals
What is the value of (7 + 2i)(3 - i)?
What is the most important part of the representative democracy
If a solid contains some particles that melt at 50°C and other particles that melt at 110°C, what must be true about the solid? A. The solid is an element.
Is god real or is he just a myth
According to freud, the _____ part of personality is responsible for morality.
find the area of the shap
Hunter wants to prove to his parents that playing computer games while he studies for tests will help him get better grades. He decides to ask 30 of his friends