From 32a6034334d6e7c58ffdf9239713f45c675a79ca Mon Sep 17 00:00:00 2001 From: daviddoji Date: Wed, 21 Sep 2022 20:44:06 +0200 Subject: [PATCH] Adopted new convention from template --- src/Python/Problems001-050/Problem002.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()}")