Which statements are correct about the PYTHONPATH environment variable? (Select two options)

Questions & AnswersCategory: PythonWhich statements are correct about the PYTHONPATH environment variable? (Select two options)
Geek Boy Staff asked 2 years ago

Which statements are correct about the PYTHONPATH environment variable? (Select two options)
a. This is an environment variable that stores the path to your home directory.
b. This is an environment variable that stores that username
c. This is an environment variable used when importing modules and packages. Every time a module/package is imported, PYTHONPATH is also checked for the presence of the imported modules/packages in different directories.
d. We can add additional directories to the PYTHONPATH environment variable where Python will look for modules and packages.
e. This is an environment variable that stores the path to the current working directory.

1 Answers
Lokesh Kumar Staff answered 2 years ago

c. This is an environment variable used when importing modules and packages. Every time a module/package is imported, PYTHONPATH is also checked for the presence of the imported modules/packages in different directories.
d. We can add additional directories to the PYTHONPATH environment variable where Python will look for modules and packages.