day1/exercise/even_perfect_4.py
branchscipy2010
changeset 430 f97ecb4e04a9
parent 64 333092b68926
--- a/day1/exercise/even_perfect_4.py	Mon Jun 28 23:52:18 2010 -0500
+++ b/day1/exercise/even_perfect_4.py	Mon Jun 28 23:52:44 2010 -0500
@@ -5,7 +5,8 @@
     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