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 did Susan B. Anthony do?
What is an amendment?
What is a hyperbole?
Which reaction is single replacement? (1) 2H2O2 --> 2H2O + O2 (2) 2H2 + O2 --> 2H2O (3) H2SO4 + Mg --> H2 + MgSO4 (4) HCl + KOH --> KCl + H2O
the band members sold 316 juice drinks for a fundraiser. they sold 52 more grape drinks than strawberry drinks. how many of each type of juice drink did they se
A bird flies 2.8 due west and then 2.7 due north. Another bird flies 2.7 due west and 2.8 due north. What is the angle between the net displacement vectors for
When do we celebrate Independence Day?
Help solve the following equation: 20.6 + 2.1x = -8.2x
is the planet Uranus surface rocky or flat?
The accepted value for the percent by mass of water in a hydrate is 36.0%. In a laboratory activity, a student determined the percent by mass of water in the hy