There are two ways to get the result of the original block - output and value . You mixed them, therefore, problems.
The first block is fine.
To fix the second block:
#+begin_src python :results value return 1+1
To fix the third block:
#+begin_src python :results output print 1+1
When the output mode is value , you must return . Just put it there, as you did with 1+1 will not. In the third, you want the result to be printed, but your session defaults to the value parameter (my default values ββare output btw).
And this bit about org-confirm-babel-evaluate has nothing to do with the question. I just set it to nil .
abo-abo
source share