CBSE Class 12 Computer Science Question 24 of 62

Using Python Libraries — Question 9

Back to all questions
9
Question

Question 9

Which file must be a part of a folder to be used as a Python package ?

  1. package.py
  2. __init__.py
  3. __package__.py
  4. __module__.py
Answer

__init__.py

Reason — For a folder containing Python files to be recognized as a package, an __init__.py file (even if empty) must be part of the folder.