for looplists
Write sum_evens(nums) that returns the sum of all even numbers in the list nums. Return 0 for an empty list.
Guest mode · solve history stays on this device; code isn’t saved. Sign in to save future work
solution.py
loading editor…
Run your code to see its output, or check your solution to grade it.