You have a directory with multiple Python script files. You want it to be recognized as a Python package. Which file would you need to add to this directory?
- init.py
- main.py
- package.py
- setup.py
To make a directory recognized as a Python package, you need to add an 'init.py' file. This file can be empty but is necessary for package recognition.
Loading...
Related Quiz
- In which scenario would you typically use the @staticmethod decorator in a class?
- The process of visiting all the nodes of a tree and performing an operation (such as a print operation) is called ____.
- How does Python enforce the private access modifier for class members?
- In Python, _____ is a special method used to overload the ‘+’ operator for custom objects.
- How does Python internally represent a float value?