def f(i, result=[]): result.append(i) return result print f(3) print f(4)