Hackbright Code Challenges
Sum List Recursively: Solution
« Back to Homepage
Sum List Recursively
Medium
Easier
Recursion, Lists
sum-list-recursively-solution.zip
def sum_list(nums): """Using recursion, return the sum of numbers in a list.""" # START SOLUTION if not nums: return 0 return nums[0] + sum_list(nums[1:])