def check_if_multiple(test_num,list_of_multiples):
	for i in list_of_multiples:
		if not i:
			continue
		if not test_num%i:
			return test_num
	return 0

def sum_of_multiples(number, multiples_list = None):
	if multiples_list == None:
		multiples_list = [3,5]
	answer=0
	for i in range(1,number):
		answer+=check_if_multiple(i,multiples_list)
	return answer
	

@@ -259,103 +259,354 @@
 5%5D%0A%09
-answer=0%0A%09for i in range(1,number):%0A%09%09answer+=check_if_multiple(i,mult
+return sum(list(filter(lambda x: check_if_multiple(x,multiples_list),range(1,number))))%0A%09#the above line:%0A%09%09#uses a lambda to call check_if_multiple multiple times with different values of x, fixing the mutl
 iples
-_
+ 
 list
-)
 %0A%09
+%09#filters out any returns that are false (returned zero)%0A%09%09#lists the 
 return
+ed
  answer
+s%0A%09%09#and sums them together - as requested!
 %0A%09%0A

refactored sum-of-multiples to be more terse