Computer Science
Which file must be part of the folder containing Python module files to make it importable Python package ?
- init.py
- __setup__.py
- __init__.py
- 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
Which operator is used in Python to import all modules from packages ?
.
operator*
operator->
symbol,
operator
In Python which is the correct method to load a module math ?
- include math
- import math
- #include
- using math
Which is the correct command to load just the tempc method from a module called usable ?
- import usable, tempc
- import tempc from usable
- from usable import tempc
- import tempc
What is the extension of Python library modules ?
- .mod
- .lib
- .code
- .py