I have seen many questions and answers for this same, but none of them solved mine. Please have a look into this,
This is my folder structure,
code/
helloworld.py
stdlib/
stdio.py
stddraw.py
__init__.py
Inside __init.py i have done
from . import stdio
Inside helloworld.py, i have done
from ..stdlib import stdio
stdio.writeln("Test")
But it says me an error saying, "attempted relative import with no known parent package" Can anyone please explain me what i am doing wrong in this case?