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

Good times ,bad times real friendship can last through good time and bad times .think of a conflict you had with one of your close friends write a nonfiction n
1. The model shows water moleculesinteracting. The gray circles representoxygen, and the white circles representhydrogen.What conclusion does this modelsupport?
who is allama muhammad iqbal​
Answer entire page!!!!
Evaluate 150+n if n=15
Two sides of a triangle are of lengths 7.2cm and 3.8cm. The length of the third side of the triangle cannot be(a) 3.5 cm(b) 4.5 cm(c) 3.2 cm(d) 3.8 cm​
Complete the following questions using compete sentecens
_______________ is a characteristic of diversity. Question 1 options: Income Career Money Ethnicity Question 2 (2 points) True or False: Jackie Robinson was t
what are the three most important values in a job​
name the three co operative which ensure food security