79540871

Date: 2025-03-28 08:26:37
Score: 1
Natty:
Report link

Use relative import

In test1.py, modify the import statement like this:

from .test import give_date

However, this will only work if you run the script from outside the naming package using python -m betacode.naming.test1. If you directly run test1.py, relative imports will fail.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Renquan Song