pyassistant

Sum of Multiples of 3 or 5

Given a list of integers, return the sum of all the elements that are multiples of 3 or 5.

Example:

Input:
[1, 2, 3, 4, 5, 6, 7, 8, 9]
Output:
23

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.