Skip to content

Instantly share code, notes, and snippets.

@fhereduardo90
Created May 3, 2019 23:41
Show Gist options
  • Save fhereduardo90/a52bb59be24871e6ee15fcd1631c9721 to your computer and use it in GitHub Desktop.
Save fhereduardo90/a52bb59be24871e6ee15fcd1631c9721 to your computer and use it in GitHub Desktop.
1 exercise
def sum_multiples(num):
sum = 0
for i in range(1, num):
if i % 3 == 0 or i % 5 == 0:
sum += i
else:
return sum
print(sum_multiples(1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment