The document demonstrates how to assign a function to a variable, showing that 'say_hi' can be used to call the 'greet' function. It also illustrates passing a function as an argument to another function and returning a function from within another function, specifically creating a multiplier. The examples provided include greeting names and multiplying numbers.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
1 views
Decorator Python
The document demonstrates how to assign a function to a variable, showing that 'say_hi' can be used to call the 'greet' function. It also illustrates passing a function as an argument to another function and returning a function from within another function, specifically creating a multiplier. The examples provided include greeting names and multiplying numbers.