kuco23·FollowAug 1, 2022--ListenShareI think as of python 3.8. there is a hack and you can do e.g. `f = lambda x: (a := x, b := 2*a)` and get `f(10) = (10, 20)`. If you want the last value, just do `f = lambda x: (a := x, b := 2*a)[-1]`.