How do you display the contents of the PYTHONPATH environment variable using the sys built-in module?

Questions & AnswersCategory: PythonHow do you display the contents of the PYTHONPATH environment variable using the sys built-in module?
Geek Boy Staff asked 2 years ago

How do you display the contents of the PYTHONPATH environment variable using the sys built-in module?

a. import sys
sys.__file__

b. import sys
sys.pythonpath

c. import sys
sys.__name__

d. import sys
sys.path

e. import sys
sys.__path__