# Author: James Tam # Version: Oct 2013 def fun (num): # Copy the value of 12 into a local variable print(num) num = num + num # Only local copy changed print(num) return(num) # Pass changes back to caller of function def start(): num = 12 print(num) # OK within scope num = fun(num) # Changes saved print(num) start()