to have look at how this workslet' define simple functiondef greeting(language)if language='eng'return 'hello worldif language ='frreturn 'bonjour le mondeelsereturn 'language not supportedsince user-defined functions are objectswe can do things such as include them in other objectssuch as listsfunctions can also be used as arguments for other functions for examplewe can define the following functionherecallf(takes function as an argumentsets language variable to 'eng'and then calls the function with the language variable as its argument we could see how this would be useful iffor examplewe wanted to produce program that returns specific sentences in variety of languagesperhaps for some sort of natural language application here we have central place to set the language as well as our greeting functionwe could create similar functions that return different sentences by having one point where we set the languagethe rest of the program logic does not have to worry about this if we want to change the languagewe simply change the language variable and we can keep everything else the same