1. Home
  2. Data Science
  3. Python
  4. What does sys.path contain in Python?

Added 25 Nov 2026

What does sys.path contain in Python?

  1. The current working directory only
  2. The Python executable path
  3. The list of directories searched for imported modules Correct answer
  4. Environment variables

Correct answer

C. The list of directories searched for imported modules

MCQSEXAM

Explanation

Python searches sys.path when importing modules.

Reference

Asked in: Python Interview Standard Library

https://docs.python.org/3/library/index.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs