REF: Minor format changes to exercise scipy2010
authorChristopher Burns <chris.d.burns@gmail.com>
Mon, 28 Jun 2010 23:52:44 -0500
branchscipy2010
changeset 430 f97ecb4e04a9
parent 429 58a2d1766197
child 431 9126059d6b37
REF: Minor format changes to exercise
day1/exercise/even_perfect_4.py
--- 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