Exam Certified Data Engineer Professional All QuestionsBrowse all questions from this exam
Question 54

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

    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
alexvnoOption: B

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