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

List the features of the site and situation of Montreal that you can locate using the satellite image in figure 3.13 and the map in figure 3.14
Last year, there were 3,972,463 visitors to a state fair. This year, there were 4,562,234 visitors. About how many people visited the state fair in the two year
4 socioeconomic factors to be considered for career and study choices and explain each of these socioeconomic factors in full
HIPAA’s Privacy and Security Rules require healthcare providers to adopt processes and procedures to protect patient confidentiality. Which processes and proced
what is the correct answer and why?
Is the point-by-point pairing of homologous chromosomes during prophase of meiosis i.
Convert 14.72 it's equivalent fraction in its lowest terms
If NH = PN + HM = 12 inches and PH = 17 inches, what is the value of HM in inches?
Which of the following was not an effect of 19th century progress on the city of Manchester, England?
QUICK HURRY!!!!!!!!!!!!!!!!!!! 20 1/7 SIMPLIFIED IS: