TInggOw TInggOw
  • 23-04-2021
  • Computers and Technology
contestada

edhesive intro to cs term 2 8.9 practice

Respuesta :

haydenjy4 haydenjy4
  • 05-05-2021

Answer:

def findIt (v, e):

   for i in range (len(v)):

       if (v[i] == e):

           return i

   return -1

# ************MAIN******************

v = ["24", "20", "29", "32", "34", "29", "49", "46", "39", "23", "42", "24", "38"]

e = input("Search for: ")

print(findIt(v,e))

Explanation:

It is better than other stuff I have seen, but it only got me a 67%.

Answer Link

Otras preguntas

Count by tens and ones to find the sum of 52+34 Use the number line to show you thinking by
Puritans believed that salvation depended on...
Find the solution to x2 = 121.
Is 15/28 greater or less than 1 / 2? Justify the answer math
how do you solve this equation . Q=3a+5ac
How many times can 90 go into 3?
1. Match them together.Deforestation, combustion, circulation, weathering, calcium carbonateA.the burning of fossil fuels to make energyB.the primary component
Find the first three iterates of the fiction for the given initial value F(x)=x+2, x0=0
Three consecutive numbers have a combined sum of 654. Name the smallest of the three largest numbers.
1. Match them together.Deforestation, combustion, circulation, weathering, calcium carbonateA.the burning of fossil fuels to make energyB.the primary component