Introduction
Module scope keeps variables and functions private inside a file. This helps avoid mixing up names and keeps code organized.
When you want to keep helper functions hidden from other parts of your program.
When you want to share only specific parts of your code with other files.
When you want to avoid name conflicts between variables in different files.
When building bigger projects with many files to keep code clean and safe.