Computer Science
Which file must be a part of a folder to be used as a Python package ?
- package.py
- __init__.py
- __package__.py
- __module__.py
Python Libraries
1 Like
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.
Answered By
1 Like
Related Questions
Which of the following random module functions generates a floating point number ?
- random()
- randint()
- uniform()
- all of these
Which of the following random module functions generates an integer ?
- random()
- randint()
- uniform()
- all of these
A python module has …………… extension.
- .mod
- .imp
- .py
- .mpy
Which of the following is not a function/method of the random module in Python ?
- randfloat()
- randint()
- random()
- randrange()