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

Querida Hija Malcontenta: Es verdad que tú tienes un problema. Piensas que tu vida con tus amigos es más importante que tu vida con tu familia. Pero, hija, tú
Simplify: 3x + x does anyone know the answer?
Positive Connotations for the word caring
If you, a physics student, weigh about 70 kg, are standing on the surface of 1 the Moon, who's mass is 7.34 x 10^22 kg what is the force of gravity acting on th
Special ways that animals' bodies work to help them survive in whatev condition they're in, such as camels in the desert conserving water and able to go days wi
What happens to the ground particles when they’re hit by sunlight
Evaluate-9-(-6)=3. Need help on question
Which form of respirar is in the preterite yo form? Respiran Respiras Respiré Respiro
? Question Select the correct answer. Does the sample sentence contain a compound verb? Snow skiing and swimming are two of my favorite sports Yes or no?​
b The value of 3 in 38.65 is 3 tens.true or false