Open addition.py and look at the definition of add : def add(a, b): Return the sum of
Fantastic news! We've Found the answer you've been seeking!
Question:
Open addition.py
and look at the definition of add
:
def add(a, b): "Return the sum of a and b" "*** YOUR CODE HERE ***" return 0
Copy
The tests called this with a and b set to different values, but the code always returned zero. Modify this definition to read:
def add(a, b): "Return the sum of a and b" print("Passed a = %s and b = %s, returning a + b = %s" % (a, b, a + b)) return a + b
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: