Skip to content

Commit 708f2bd

Browse files
committed
extra credit - modified puzzle formula
1 parent 4a7ebd2 commit 708f2bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ex21.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ def divide(a, b):
3030

3131
# age + height - weight * (iq / 2)
3232
# 35 + 74 - 180 * (50 / 2)
33-
what = add(age, subtract(height, multiply(weight, divide(iq, 2))))
33+
what = add(age, subtract(height, multiply(weight, divide(iq, 4))))
3434

3535
print "That becomes: ", what, "Can you do it by hand?"

0 commit comments

Comments
 (0)