about | help | code help+videos | done | prefs |
Define a function that when passed a list, returns the sum of all negative numbers in the list. sum_negatives([10, 70, 20, 90]) → 0 sum_negatives([-10, 70, 20, -90]) → -100 sum_negatives([-1, -2, -3, -4, -5, -6, -7, -8, -9, -10]) → -55 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 1 Post-solution available
Copyright Nick Parlante 2017 - privacy