From 67b0f93a17f2dbda17a4fe1d5faa19384c70b13e Mon Sep 17 00:00:00 2001 From: daviddoji Date: Mon, 26 Sep 2022 20:46:06 +0200 Subject: [PATCH] Adopted new convention from template --- src/Python/Problems001-050/Problem016.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Python/Problems001-050/Problem016.py b/src/Python/Problems001-050/Problem016.py index 1901c95..034a405 100644 --- a/src/Python/Problems001-050/Problem016.py +++ b/src/Python/Problems001-050/Problem016.py @@ -19,6 +19,7 @@ def compute(): What is the sum of the digits of the number 2^1000? """ + n = 1000 return sum(int(digit) for digit in str(2**n))