summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burns2010-06-28 23:52:44 -0500
committerChristopher Burns2010-06-28 23:52:44 -0500
commit4d083f828be9b026dd9efd1a2ca34142a7be3705 (patch)
treefc271daaa162eb321f0dc42d31d2fa4662534eca
parentd264e63343c2b950c249f07a768563d25ed7a7a0 (diff)
downloadworkshops-more-scipy-4d083f828be9b026dd9efd1a2ca34142a7be3705.tar.gz
workshops-more-scipy-4d083f828be9b026dd9efd1a2ca34142a7be3705.tar.bz2
workshops-more-scipy-4d083f828be9b026dd9efd1a2ca34142a7be3705.zip
REF: Minor format changes to exercise
--HG-- branch : scipy2010
-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