Skip to content

Commit c9d881a

Browse files
committed
added comments explaining puzzle
1 parent ccb368e commit c9d881a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ex21.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def divide(a, b):
2828
# A puzzle for the extra credit, type it in anyway
2929
print "Here is a puzzle."
3030

31+
# age + height - weight * (iq / 2)
32+
# 35 + 74 - 180 * (50 / 2)
3133
what = add(age, subtract(height, multiply(weight, divide(iq, 2))))
3234

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

0 commit comments

Comments
 (0)