<prompt> Run a search algorithm on the given list of numbers in order to find the number at a particular index.list 21, 17, 50, 29, 52index 3  <response>: Here is a simple way to perform a search on the given list to find the number at a particular index using Python:pythondef search_listlst, idx: Check if the index is within the range of the list if idx lenlst or idx 0: return Invalid index Return the value at the given index else: return lstidxlist 21, 17, 50, 29, 52index 3result search_listlist, indexprintresultIn this example, the function search_list takes in 2 parameters, the list and the index to be searched. The function checks if the index is within the range of the list, if not it returns Invalid index. If the index is within the range, the function returns the value at that index using lstidx.For the given input list and index, the output will be 29, since 29 is the value at index 3 of the input list. 