I am trying to get a function (getFreq()) out of the utils.py file.
However, when doing this in the part1.py file:
from ..utils.utils import getFreq
print(getFreq(["R8","U5","L5","D3"]))
It just says: ImportError: attempted relative import with no known parent package
.
How would I fix this and import it?
Note: the __init__.py
file is empty in the utils
folder to make Python think it is a module (What I have been told to do on Google).