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

Which is NOT a power the Legislative Branch has over the Executive Branch?
Which of the following most closely describes how the perspective of parents differs from that of teachers? A-parents see their child's strengths and weaknesse
204100 were would the decimal go??
The vertex of a parabola is (3,2). A second point on the parabola is (1,5). Which of the following points is also on the graph?
Which is NOT an example that Gordimer uses to support her main idea?
How can I use the internet/social media to protect my identity?
Hello again, Who gave his tomb for a Christ's burial? Pilate Joseph of Arimathea Thank you :)
Which of the following would be the most appropriate way to address and greet your teacher, Mr. Joseph Herman, in an email? Hi Joseph, How u doin?? Dear Joseph
How did Jonathan protect his bike during the civil war? "Civil Peace" by Chinua Achebe
What is n equals to in this eqution 12n+7=8n+15?