pyassistant

Sum of Positive Integers

You are given a list of integers. Write a function to return the sum of all positive integers in the list.

Example:

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

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.