Question: &Write a function called string-search () that takes two #parameters, a list of strings, and a string. This function #should return a list of all

&Write a function called string-search () that takes two #parameters, a list of strings, and a string. This function #should return a list of all the indices at which the 'string is found within the list. You may assume that you do not need to search inside the items in the list; for examples string_search("bob","burgers","tina""bob" "bob" [0,31 string_search("bob","burgers","tina""bob", "bae" string_search("bobbobby""bob"]) #Use a linear search algorithm to achieve this. Do not use the list method index. Recall also that one benefit of Python's general leniency with types is that algorithms written for integers easily #work for strings. In writing string-search(), make sure it will work on integers as well we'1l test it on #both ?write your code here! #Feel free to add code below to test your function. You #can, for example, copy and print the test cases from the instructions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
