functions that may clash with other names in this file (perhaps unlikelybut always possible lambdas also come in handy in function-call argument lists as way to inline temporary function definitions not used anywhere else in your programwe'll see some examples of such other uses later in this when we study map how (notto obfuscate your python code the fact that the body of lambda has to be single expression (not series of statementswould seem to place severe limits on how much logic you can pack into lambda if you know what you're doingthoughyou can code most statements in python as expression-based equivalents for exampleif you want to print from the body of lambda functionsimply say print(xin python where this becomes call expression instead of statementor say sys stdout write(str( )+'\ 'in either python or to make sure it' an expression portably (recall from that this is what print really doessimilarlyto nest selection logic in lambdayou can use the if/else ternary expression introduced in or the equivalent but trickier and/or combination also described there as you learned earlierthe following statementif ab elsec can be emulated by either of these roughly equivalent expressionsb if else (( and bor cbecause expressions like these can be placed inside lambdathey may be used to implement selection logic within lambda functionlower (lambda xyx if else ylower('bb''aa''aalower('aa''bb''aa student once noted that you could skip the dispatch table dictionary in such code if the function name is the same as its string lookup key--run an eval(funcname)(to kick off the call while true in this case and sometimes usefulas we saw earlier ( )eval is relatively slow (it must compile and run code)and insecure (you must trust the string' sourcemore fundamentallyjump tables are generally subsumed by polymorphic method dispatch in pythoncalling method does the "right thingbased on the type of object to see whystay tuned for part vi anonymous functionslambda