Question: #Write a function called search _ for _ string ( ) that takes two #parameters, a list of strings, and a string. This function #should
#Write a function called searchforstring 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:
#
# searchforstringbob "burgers", "tina", "bob" "bob"
#
# searchforstringbob "burgers", "tina", "bob" "bae"
#
# searchforstringbob "bobby", "bob"
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
