Consistency formatting

This commit is contained in:
daviddoji committed 2021-06-05 15:03:42 +02:00
1 parent c793c7e9dd
commit 5c7cec373c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -20,8 +20,8 @@ def compute():
Find the sum of all the multiples of 3 or 5 below 1000.
"""
ans = sum(x for x in range(1000) if (x % 3 == 0 or x % 5 == 0))
return ans
+1 -1
View File
@@ -27,12 +27,12 @@ def compute():
limit = 4_000_000
x, y = 1, 1
z = x + y # Because every third Fibonacci number is even
while z <= limit:
ans += z
x = y + z
y = z + x
z = x + y
return ans