1 | initial version |
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 (?)