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

Seven years ago, Grogg's dad was $9$ times as old as Grogg. Four years ago, Grogg's dad was $6$ times as old as Grogg. How old is Grogg's dad currently?
the night thoreau spent in jail what job does henry agree to perform for the emersons
What time period first introduced Christmas wreaths?
Please send help, how to solve it
underline the noun clause in each sentences chose the gift for whom ever you want​
1560ml means___ l and____ml
Select the correct pairs of triangles. The measures of two angles of pairs of triangles are given. Which pairs of triangles are similar? Triangle 1: 55°, 45° Tr
After hydroxide chemical hair relaxers break disulfide bonds what do they convert them to?
I am a grade 9 student currently studying biology, chemistry and more as my electives. \ desire to be a doctor and is amazed by the human body and structures of
Soil is composed of:a. mineral particles.b. organic materials.c. air.d. water.e. All of these