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

AFTER EVERY NINTH VISIT TO A RESTAURANT YOU RECEIVE A FREE BEVERAGE . AFTER VERY TWELFTH VISIT YOU RECEIVE A FREE APPETIZER . IF YOU VISIT THE RESTAURANT 100 TI
whats the answer to: 11x/18
What is a U.S. engineer's ride?
What is 2069 rounded to the nearest 1000
write an equation with the solution x=20??
How many rolls can you make with 5 2/3 cups of flour?
What role did the Scientific Revolution play in bringing about the Enlightenment?
Do chickens have a backbone
Chiang picked 12 apples. She gave 1/6 of the apples to each of her 5 friends. How many apples did each friend get?
what is an integral part of blood, which carries nutrients to all parts of the body