Learn
Code Challenge: Loops
Larger Sum

larger_sum(lst1, lst2)

Instructions

1.

Create a function named larger_sum() that takes two lists of numbers as parameters named lst1 and lst2.

The function should return the list whose elements sum to the greater number. If the sum of the elements of each list are equal, return lst1.

Folder Icon

Sign up to start coding

Already have an account?