# Author: James Tam # Version: November, 2012 # Learning concepts: the benefit of passing references (pass-by- # reference MAX = 1000000 # Simulates: what if lists and not references were passed # into functions. def fun(i): print("Number of times function has been called %d" %(i)) aList = [] for j in range (0,MAX,1): aList.append(str(j)) def start(): for i in range (0,MAX,1): fun(i) start()