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

Is congress made of 100. Judges and 435 representatives
How many toes does a frog have
An artificial lake is in the shape of a rectangle and has an area of 9/20 square mile. The width of the lake is 1/5 the length of the lake. What are the dimensi
Answer to this question please ASAP
330,000 write using Scientific Notation.
What is the average of 22,28,and 25.
Is congress made of 100. Judges and 435 representatives
What is 1/4 of 10 explain
What is the world formula of photosynthesis? The chemical formula?
Which of the following organic compounds is the main source of energy for living things?a.carbohydratesc.nucleic acidsb.lipidsd.proteins