def foo(debug=True): 'determine if in debug mode with default argument' if debug: print 'in debug mode' print 'done' foo() foo(False) def taxMe(cost, rate=0.0825): return cost + (cost * rate) taxMe(100) taxMe(100, 0.05)