What is the purpose of an __init__.py file?

What is the purpose of an __init__.py file?
A. An __init__.py file initializes a Python application with default values for instantiated objects
B. An __init__.py file indicates to the Python interpreter that a directory contains Python packages or modules
C. __init__.py file sets all magic attributes with the __init__.prefix with the appropriate default values
D. An __init__.py file contains strings for additional directories that the Python interpreter adds to sys.path []

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.