noweb in org-mode
The Code in org-org-mode:
#+name: first-block
#+begin_src python :results output
print ("first-block")
#+end_src
#+begin_src python :noweb yes :results output
<<first-block>>
print("second-block")
#+end_src
print ("first-block")
Code Snippet 1:
first block
first-block
print ("first-block")
print("second-block")
Code Snippet 2:
second block
first-block
second-block