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

How did native americans assist pioneers on their journey west?
Which statement accurately describes public campaign funds?   A. Third parties must have received at least 50 percent of the popular vote in the previous elect
If y varies directly as x, and y is 400 when x is r and y is r when x is 4, what is the numeric constant of variation in this relation?
a house has a rectangular tile kitchen that is 7 tiles wide and 8 tiles long. It also has a rectangular dining room that is 9 tiles wide and 10 tiles long. How
Only question 12 please help.
An ethnic group that lives in turkey,Syria,Iraq and Iran
A van moves 252km in 180 minutes. What is its average speed in kilometers per hour?
what's 7-11..........i need help
what is the purpose of an argument's introduction
If the time is now 3:30 P.M., what will be the time in 4 hours and 15 minutes?