Mega Code Archive

 
Categories / Python Tutorial / Function
 

The lambda operator creates anonymous functions

bigger = lambda a, b : a > b print bigger(1,2) print bigger(2,1)