Skip to content

Instantly share code, notes, and snippets.

Created Mar 25, 2018
What would you like to do?
import unittest
def multiple3_5(high:int) -> int:
sum = 0
for i in range (1, high):
if i % 3 == 0:
sum += i
elif i % 5 == 0:
sum += i
return sum
class TestProblem1(unittest.TestCase):
def test_example(self):
def test_answer(self):
print("Answer: "+str(multiple3_5(1000)))
if __name__ == '__main__':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment