def make_adder(n): def adder(x): return x+n return adder add3 = make_adder(3) print add3(5)