Advertisements
Advertisements
Question
What is the composition in functions?
Short Note
Solution
The value returned by a function may be used as an argument for another function in a nested manner. This is called composition. For example, if we wish to take a numeric value or an expression as an input from the user, we take the input string from the user using the function input ( ) and apply the eval ( ) function to evaluate its value.
shaalaa.com
Functions Using Libraries
Is there an error in this question or solution?