# debugExamples.py # These are function to demonstrate using the IDLE debugger def func1(p1, p2): print "I am in function 1" print def func2(p1): print "I am in function 2" name = raw_input("What is your name?") return name def func3(yourName): for i in range(3): print "I like ",yourName # 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(): func1(12, 23) nm = func2(12) func3(nm) print "I am outta here..." #ans = adder(10, 5) #print "The sum is ", ans main()