# debugExamples2.py # These are function to demonstrate using the IDLE debugger # This function has a logic error # What are your assumptions? # Use the debugger to validate those assumptions def adder(a1, a2): ans = a1 - a2 return ans def main(): ans = adder(10, 5) print "The sum is ", ans printer("this is a test of the emergency Python system... \ \nthis is only a test") main() # This has an error to... call it from main and run the debugger to # find it. def printer(st): print "The string is:"+st