12
In MATLAB it is possible to create function handles with something like
myfun=@(arglist)body
This way you can create functions on the go without having to create M-files.
Is there an equivalent way in Python to declare functions and variables in one line and to call them later?