There are already multiline lambda functions available by using the walrus operator:
foo = lambda x: ( z:=x+1, zz:=z*2, zz+7 )[-1]
it defines a tuple and returns the last element. List comprehensions, walrus operator and lambda make a functional language out of python.