def create_multiplier(n): return lambda x: x * n mult_by_2 = create_multiplier(2) mult_by_3 = create_multiplier(3) print(mult_by_2(mult_by_3(4)))