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 is the name of the Vice President of the United States now?
Which statement describes one acid-base theory? (1) An acid is an H+ acceptor, and a base is an H+ donor. (2) An acid is an H+ donor,. and a base is an H+ accep
What are two Cabinet-level positions?
Can someone help me match these up? i know the given is number one I need help with the rest.1.line RS || segment AB, ∠1=∠22.∠B = ∠13.∠A = ∠24.∠A = ∠B5.RA = RBA
What ocean is on the East Coast of the United States?
What is the name of the national anthem?
is the planet Uranus surface rocky or flat?
Who is the Commander in Chief of the military?
Why did the gap between rich ans poor in Latin America grow after independence.
Who lived in America before the Europeans arrived?