I’m trying to call a lambda directly when it is defined. Is the purpose of the first pair of parentheses is to stop x (3)
from coming together. Because () is higher than lambda in precedence?
Thanks
>>> (lambda x: x) (3)
3
>>>
>>> a = lambda x: x (3)
>>> b = lambda x: x + 2
>>> a(b)
5
>>>