diff --git a/src/Python/Problems001-050/Problem002.py b/src/Python/Problems001-050/Problem002.py index 63676a5..4154471 100644 --- a/src/Python/Problems001-050/Problem002.py +++ b/src/Python/Problems001-050/Problem002.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python """ Created on 14 Mar 2017 @@ -23,6 +23,7 @@ def compute(): Find the sum of all the even-valued terms in the sequence which do not exceed four million. """ + ans = 0 limit = 4_000_000 x, y = 1, 1 @@ -37,5 +38,4 @@ def compute(): if __name__ == "__main__": - - print(f"Result for problem 2: {compute()}") + print(f"Result for problem 2 is {compute()}")