KnowledgeBoat Logo

Computer Science

Which file must be part of the folder containing Python module files to make it importable Python package ?

  1. init.py
  2. __setup__.py
  3. __init__.py
  4. setup.py

Python Libraries

2 Likes

Answer

__init__.py

Reason — The file __init__.py in a folder, indicates it is an importable Python package, without __init__.py, a folder is not considered a Python package.

Answered By

2 Likes


Related Questions