import sys print(sys.path)
Here is what the above code is Doing:
1. We import the sys module.
2. We print the value of sys.path.
sys.path is a list of strings that specifies the search path for modules. In
simple terms, it is a list of directories where Python will look for modules
When you import a module, the Python interpreter searches for the module in the
following sequences −
1. The current directory.
2. PYTHONPATH (an environment variable with a list of directory).
3. The installation-dependent default directory.