Juniper
JN0-420 · Question #50
What is the purpose of an __init__.py file?
The correct answer is B. An __init__.py file indicates to the Python interpreter that a directory contains Python packages or. See the full explanation below for the reasoning.
Question
What is the purpose of an init.py file?
Options
- AAn init.py file initializes a Python application with default values for instantiated objects
- BAn init.py file indicates to the Python interpreter that a directory contains Python packages or
- Cinit.py file sets all magic attributes with the init.prefix with the appropriate default
- DAn init.py file contains strings for additional directories that the Python interpreter adds to
How the community answered
(23 responses)- A13% (3)
- B78% (18)
- C4% (1)
- D4% (1)
Community Discussion
No community discussion yet for this question.