about | help | code help+videos | done | prefs |
sum_odds
Return the sum of the odd ints in the given list. Note: the % "mod" operator computes the remainder, e.g. 5 % 2 is 1. sum_odds([5, 2, 6, 3, 4]) → 8 sum_odds([3, 6, 11, 2, 5]) → 19 sum_odds([]) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy