Python - Modules and Code Organization
Given this folder structure and files:
What will be the output when running
mypackage/
__init__.py
module.py
# __init__.py content:
print('Package imported')
# module.py content:
def greet():
return 'Hello!'
# main.py content:
import mypackage
from mypackage import module
print(module.greet())What will be the output when running
main.py?