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

Help please someone I need help
What NORMAL process do organisms go through after they die, instead of being fossilized?
Do you think that how you act/present yourself on social media/online is different than in person? Why do you think that is?
answer asap no wrong answers pls
1) Imagine that you live in an area where unemployment is high. What is the MOST likely effect this would have on the local economy? A. Families will spend mor
I need help on this question:(...pls do it correctly and i will give a rate 5:)
Myron bought 4 books on Monday. Each book cost $4 including tax. How much money did Myron spend on the books?
Find the value of x
F.O. Find the perimeter and area of the triangle. 10 yd Syd Byd The perimeter of the triangle is yd. (Type a whole number or a fraction.)
write an application to your class teacher to issue you a marksheet of the recent exam.​