recursion fig the run-time stack and the heap one important note should be made here figure shows historyofoutput as local variable in the showoutput function this is not really the casebecause the historyofoutput reference is not defined within the local scope of the showoutput function howeverdue to the way python is implemented the reference for this variable shows up in the activation record for showoutput because it is being referenced from this scope butthe reference to historyofoutput in the activation record for showoutput and the reference called historyofoutput in the main activation record point at the same object so no real harm is done the important thing to note is that the wing ide is correct in showing the historyofoutput variable as local variable in this activation record since this is reflection of python' implementation and not due to bug in wing ide this copy belongs to 'acha