First time here? Check out the FAQ!
answered 13 years ago
You can also use a lambda function:
f = lambda x,y: min(x,y) print f(4,3)
I don't know much about them except they seem to delay evaluation of the function until you pass it variables. doing
f(x,y) = min(x,y)
doesn't (?)