Python - Modules and Code Organization
Consider this folder structure:
with
and
What will be the output of:
project/
__init__.py
utils.py
with
__init__.py containing:from .utils import add
and
utils.py containing:def add(x, y):
return x + y
What will be the output of:
import project
print(project.add(3, 4))
