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

More recent court rulings have made it clear that the sort of issues raised in Korematsu v. U.S. will absolutely never happen again. True or False?
Help Two angles are supplementary. Their difference is 40° Find the measure of the angles.​
Please anyone help me on this question
The distance between 19 and -15 on a number line is 4 true or false?
I am doing a very important assignment PLEASE HELP!! Does self-image stay the same? Can others impact our self-image? How? (1-2 sentences) What if we tried some
How does radiant energy transform into chemical energy?
True or false. If false write the correct statement1. The depreciation takes place by a specific rate for a specific time​
Alice recently purchased a new cell phone. After her vacation, Alice wanted to transfer her holiday photos to her computer to do some touchup work before sendin
Ok I'm playing minecraft I have 30 levels and a full enchantment room, what's better using thirty levels on a diamond axe of a diamond picaxe
Why was the civil rights act of 1964 needed