First, learn what is the Symbol table as it is essential to understand how import works.
The modules.ipynb
6. Modules — Python 3.13.5 documentation