def recursion_list(number_list):
if number_list == []:
return []
if number_list[0] > 100:
return number_list[0]
else:
return recursion_list(number_list[1:])
If I have a list, [1, 3, 152, 100, 200]. I want to iterate through all the values, and return all the values that are over 100. But so far this function only returns 152, which is the first value that is over 100, but it does not iterate through the rest. How would I iterate over the rest of the list, and then return it as a list? So [152, 100, 200].