analytics package with submodules loaders and reports, where reports needs load_csv from loaders. Write the content of analytics/reports.py showing (1) the explicit relative import of load_csv, and (2) a function weekly_report(path) that calls it and returns f'rows: {len(rows)}' where rows is the loaded list.weekly_report('data.csv') # loaders.load_csv returns 10 rows'rows: 10'
The relative import binds the sibling module function.
A single leading dot means "same package".
Relative imports only work inside packages — worth saying in an interview.