Question: Using python 3 write the following functions utilizing recursion: All functions will take a list of integers as input, all lists will have at least
Using python 3 write the following functions utilizing recursion:
All functions will take a list of integers as input, all lists will have at least one element (2 in the case of second smallest).
getsum: Return the sum of all elements in a given list getmax: Return the maximum number in a given list s_smallest: Return the second smallest number in a given list sum_max_min: Return the sum of the maximum and minimum elements in a given list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
