Certified Data Engineer Professional Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Professional Exam - Question 54


Which Python variable contains a list of directories to be searched when trying to locate required modules?

Show Answer
Correct Answer: B

The Python variable that contains a list of directories to be searched when trying to locate required modules is `sys.path`. This variable is part of the `sys` module and is a built-in list that includes the directory of the script being run, the PYTHONPATH, and the default installation-dependent directories.

Discussion

1 comment
Sign in to comment
alexvnoOption: B
Dec 18, 2023

sys. path is a built-in variable within the sys module. It contains a list of directories that the interpreter will search in for the required module