Am I crazy, or is looping not needed for this assignment? I’ve been struggling a little with loops, but when I saw this I had to ask myself if doing it without loops wasn’t the easier option. Now I’m wondering if I got the correct answer by accident or if my code would actually work correctly for the requested outcome.
Any input is greatly appreciated.
Create a function named
larger_sum() that takes two lists of numbers as parameters named
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