Ask Your Question

Revision history [back]

click to hide/show revision 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 (?)