pyassistant

Sum of Positive Integers

Create a function that takes a list of integers as input and returns the sum of all the positive integers in the list.

Example:

Input:
[3, -5, 2, 10, -8]
Output:
15

Make sure you return your solution, don't print!

AI

Bot

Trying to solve my challenge? Ask if you must, or press the purple button so I can analyze your code.