RosettaCodeData/Task/Metaprogramming/Python/metaprogramming-2.py

3 lines
35 B
Python

func = expand[1 + 2]
print func(5)