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

Need these 2 problems ASAP! Working With Inequalities: 1. m/3 ⊆ 5 2. p/3 ⊇ 7/3 Thank You all in advance! -plz comment on this if you have questions
did Galileo help us understand Saturn better
How are the three cell layers of an embryo related to its development?
A material that is not easily scratched is _____. tough strong hard elastic
what is responsible for the breakdown and absorption of nutrients
how many grains of sand are in a 10kg bag
how does the author use logos to support the argument made in save the coral reefs
help please!!!! quick !!!!!!!!! Pythagorean theorem
Write the number equal to 5 tens and 13 ones
What is the difference between a multiple and a product