I'm using the Notebook on Wolfram-Cloud as a ... well ... notebook to keep notes about the topic I'm studying and to answer exercises. I usually keep one notebook file per chapter, with course notes on the top, and exercises solution on the bottom (see the screen capture below)
This sometimes cause me troubles when a symbol is bound to some value in one exercise, then the same symbol name is re-used in a different exercise. I could
Clear all symbols used at the start of each exercise section. But it seems quite cumbersome.
What are the best practices/solutions to ensure definitions and symbol bindings to stay local to a given section?
More formally, I was looking for a way to keep bindings lexically scoped to sections (and its subsections)
Module but it does not allow the module content to be broken in different notebook parts: