Skip to content

Commit 07b82fb

Browse files
committed
extra credit - wrote my own formula
1 parent 708f2bd commit 07b82fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ex21.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ def divide(a, b):
3232
# 35 + 74 - 180 * (50 / 2)
3333
what = add(age, subtract(height, multiply(weight, divide(iq, 4))))
3434

35-
print "That becomes: ", what, "Can you do it by hand?"
35+
print "That becomes: ", what, "Can you do it by hand?"
36+
37+
# 25 + (75 + (125 * 3))
38+
what2 = add(25, add(75, multiply(125, 3)))
39+
print "That becomes: ", what2

0 commit comments

Comments
 (0)