Superb blog post demonstrating literate programming with org-mode: https://howardism.org/Technical/Emacs/literate-programming-tutorial.html (I learnt tons, you probably will too!)