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 LCD of 1/2 and 2/17? A.1 B.17 C.19 D.34
What is 19% of $72 estimated
The information regarding the origin and development of a word is that word's: lexicography etymology bibliography biography
3/8 of the cast in a musical have to sing what fraction of the cast does not have to sing
People who make goods and services are called _____ . consumers producers investors
Is the following statement true or false? Every diameter of a circle is a chord. Justify. (I know it's true but could someone help because im stuck on how i sho
list 3 events that led to Florida becoming a U.S. territory. i can only give away 10 points because i had eleven and now i have 1.oops meant history as the subj
A well-tested explanation for a set of observations or experimental results is a a. law. b. rule. c. theory. d. hypothesis.
Write an algebraic expression that represents the quotient of a number and 20
A new skateboard cost $150. You have a 30% off coupon how much money did you save with your coupon?