Python: using lambda functions

Example:

g = lambda x: x*x
Lambda functions are small anonymous functions in Python.

Solution:

print(g(7))  # Outputs: 49

Beginner's Guide to Python