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

While arguing with a coworker, it is best to point out mistakes immediately so that you do not forget something later. True or False
Two mixed numbers with the sum of three
what might be a reason for females to have a lower heart rate during exercise than males?
In 1902, President Roosevelt became involved in and supported the workers in a strike in what industry?
Helpppppppppppp ASAP!!!!!!!!
Which of the following accurately describes the way Western European leaders reacted to Christopher Columbus's journey to the Caribbean? A. They dismissed his a
What is the root word oc monorail ?
When the point (-3,2) is reflected across the y-axis, what are the coordinates of the resulting point?
A karat equals 1/24 part of gold in an alloy [ eg 9 karat gold is 9/24 gold]. How many grams of 9 karat gold must be mixed with 18 karat gold to make 200 grams
Please answer the question from the attachment.