Python

Only if you use the header argument :results value the code of the block is wrapped by a function and the result of the code block is the return value of that function.

return 7 + 7
14

On the other hand :results output means that the code of the block is sent to the interpreter. The result of the code block is what the code prints to the standard output.

print "%d" % (7 + 7)