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

the Method ofgettinginformation outof the computer​
In this quotation, Stewart is arguing that enslaved persons are most harmed by a lack of employment. social equality. education. political representation
A salesperson's commission rate is 5%. What is the commission from the sale of $43,000 worth of furnaces? ​
what is the formula for the area of a square ​
SHOWING YOUR WORK find an equation in standard form of the parabola passing through the points
If a gun fires 88 rounds per minute, how many rounds would it fire in 45 minutes?
which heir thinks that they have the answer(The Westing Game)
Two girls were born to the same mother, on the same day, at the same time, in the same month and the same year and yet they're not twins. How is that possible?
Help please Hi-res vectors have more detail than lo-res vectors. True False
. A presidential term is _________ years long. The President can serve for a maximum of ________ terms and ________ years because of the _____th amendment