venture of iit bombay vjti alumni the anonymous functions these functions are called anonymous because they are not declared in the standard manner by using the def keyword you can use the lambda keyword to create small anonymous functions lambda forms can take any number of arguments but return just one value in the form of an expression they cannot contain commands or multiple expressions an anonymous function cannot be direct call to print because lambda requires an expression lambda functions have their own local namespace and cannot access variables other than those in their parameter list and those in the global namespace although it appears that lambda' are one-line version of functionthey are not equivalent to inline statements in or ++whose purpose is by passing function stack allocation during invocation for performance reasons syntax the syntax of lambda functions contains only single statementwhich is as follows