Lets start with an inbuilf module ex. random or math
sys.modules
is a dictionary holding the refrence to the actual module code.
we can verify that by using the code below:
How does python knows where to look for modules when performing an import?
it maintains a search path in sys.path
. to check you current search path. try the code below:
it would output something like: