#This is our usual function where we have to define a name for the function
def func(x,y):
return(x+y)
2,3) func(
5
October 4, 2019
Lambda is an important function/operator to create anonymous in-line functions in pyhton.
lamda arguments: expression
#This is our usual function where we have to define a name for the function
def func(x,y):
return(x+y)
func(2,3)
5
lambda functions can be used in place of a iterator when sorting – this allows for selecting the column or the varible according to which sorting has to be done
When you want to have multiple outputs for the functions but do not want to write a for all explicitly you can use map function for pseeding things up
[8 1 5 0 7]
[64, 1, 25, 0, 49]