Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def summation_recursion(submit_list, output):
  2.  
  3. given_list = submit_list
  4.  
  5. if len(given_list) > 0:
  6. output += given_list.pop()
  7. summation_recursion(given_list, output)
  8. else:
  9. return output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement