Code examples are very important for a toolkit. For example, after an introduction to the most important concepts of ROOT and having discussed basic applications leveraging the ROOT system, it is time to see these building blocks "in action", as part of more complex programs.
For this reason, a rich set of ROOT code examples are offered. They are separated in two categories: macros and Jupyter notebooks. These example snippets are also commonly called "Tutorials".
The tutorial macros are available for all major ROOT releases. These are the links for the latest git snapshot. All macros are available also in the form of ROOTBook which can be visualised in NBViewer or tried out interactively in SWAN. Just look for these badges: