What is the purpose of __init__.py in a directory in Python?
Correct answer
A. Marks the directory as a Python package
5 views
A. Marks the directory as a Python package
5 views
Traditionally __init__.py marks a directory as a regular package.
Asked in: Python Interview Advanced Python
https://docs.python.org/3/library/index.htmlNot sure why the answer is A? Ask here and get an explanation.