by farinasa · 12y ago · 0 comments
>>> print let(4)
8
Edit: Awesome, downvoted for helping.
print expensive_computation(), expensive_computation()
You can do: (lambda x: print x, x)(expensive_computation())
Which would be equivalent to, with an imaginary let syntax: (let x be expensive_computation(): print x, x)