beyondgrader.com Logo
DemoBrowseAboutTeamLogin

Sum of Odd

[email protected] // 1.0 // type-checkable

Write a function named sum_of_odd that accepts a list of integers and returns the sum of only the odd numbers in that list. For example, given [3, 1, 2, 3], you would return 7 (3 + 1 + 3).