def euler(num): sum=0 for x in range(num): if x%3==0 or x%5==0: sum += x return sum
def mul():- def euler(num):
- sum=0
for i in range(1001):if i>0:if(i%3==0 or i%5==0):sum=sum+1- for x in range(num):
- if x%3==0 or x%5==0:
- sum += x
- return sum
test.assert_equals(euler(10), 23) test.assert_equals(euler(1000), 233168)
- test.assert_equals(euler(10), 23)
- test.assert_equals(euler(1000), 233168)