Question: Functions Exercise 3 in python Problem Write a function called search _ list that takes a list and a search term as parameters. If the
Functions Exercise in python
Problem
Write a function called searchlist that takes a list and a search term as parameters. If the search term is located in the list, return the index of the matching element. The function should work even if there is a difference in capitalization. If the search term is not in the list, return
Expected Output
If the function call is searchlistdog "fish", "cat" "Cat" the the function would return
If the function call is searchlistwater "Toy", "house" "toy" then the function would return
If the function call is searchlistbox "car", "hat" "mouse" the the function would return
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
