Computer Science
A folder having .py files along with a special file i.e, __init__.py in it is an importable Python package.
Python Libraries
3 Likes
Answer
True
Reason — The file __init__.py (even if empty) 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
The import <module> statement imports everything in the current namespace of the Python program.
Any folder having .py files is a Python package.
The statement from <module> import <objects> is used to import a module in full.
Assertion. The documentation for a Python module should be written in triple-quoted strings.
Reason. The docstrings are triple-quoted strings in Python that are displayed as documentation when help <module> command is issued.