Python: using lambda functions
Example:
g = lambda x: x*x
Lambda functions are small anonymous functions in Python.
Solution:
print(g(7)) # Outputs: 49
Example: Solution:Python: using lambda functions
Lambda functions are small anonymous functions in Python.
g = lambda x: x*x
print(g(7)) # Outputs: 49