Question: Find a given element in a list using a recursive function. The function is defined as find(elm_list, x), where elm_list is the input list
Find a given element in a list using a recursive function. The function is defined as find(elm_list, x), where elm_list is the input list and x is the element to be found. The function return the index of x if x is in the list, otherwise it returns -1. Test you function with following: [1.2, 3, 555, 66, 6, 35, 345, 345, 78, 12341], x = 78, x = 11
Step by Step Solution
3.40 Rating (156 Votes )
There are 3 Steps involved in it
def find elmlist x return findhelper elmlist x 0 def find... View full answer
Get step-by-step solutions from verified subject matter experts
