lambda returning tuple
A lambda function can return complex data structures as well. e.g. a tuple.
examples/functional/lambda_return_tuple.py
dbl = lambda n: (n, 2*n) ret = dbl(12) print(ret)
(12, 24)
A lambda function can return complex data structures as well. e.g. a tuple.
dbl = lambda n: (n, 2*n) ret = dbl(12) print(ret)
(12, 24)