deep_sum(nested) that returns the sum of all numeric values in nested, a list which may contain integers, floats, and other lists nested to any depth.nested = [1, [2, 3], [4, [5, 6]]]
21
1+2+3+4+5+6 = 21.
Recurse whenever an element is itself a list; otherwise add it to a running total.