| 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 (?)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.