output of above code is as followslocal global global statement local variable inside function can be made global by using the global keyword if local variable which is made global using the global statement have the same name as another global variablethen changes on the variable will be reflected everywhere in the program syntax of global statement is as followsglobal variable-name following example demonstrates global keywordx def fun()global print("local =",xfun(print("global =",xoutput of the above program islocal global in case of nested functionsinner function can access variables both outer and inner functions outer function can access variables defined only in the outer function anonymous functions or lambda functions functions that don' have any name are known as lambda or anonymous functions lambda functions are created using the keyword lambda lambda functions are one line functions that can be created and used anywhere function is required lambda is simply the name of letter 'lin the greek alphabet lambda function returns function object lambda function can be created as followslambda arguments-list expression bv prasanthi dept of cse page