summaryrefslogtreecommitdiff
path: root/day1/exercise/even_perfect_4.py
diff options
context:
space:
mode:
Diffstat (limited to 'day1/exercise/even_perfect_4.py')
-rw-r--r--day1/exercise/even_perfect_4.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/day1/exercise/even_perfect_4.py b/day1/exercise/even_perfect_4.py
index 7910acf..c582a24 100644
--- a/day1/exercise/even_perfect_4.py
+++ b/day1/exercise/even_perfect_4.py
@@ -5,7 +5,8 @@ def is_perfect_square(n):
return i * i == n
def all_digits_even(n):
- if n < 0: n = -n
+ if n < 0:
+ n = -n
while n > 0:
if n % 2 == 1:
return False