I have a directory structure like this,
Assignments
├── Assignment1
│ ├── Assignment-1.pdf
│ └── assignment1.py
└── Methods
├── init.py
├── primality.py
I want to import functions from the primality.py file into the assignment1.py file.
What is my relative and absolute import line for this dirctory structure?
I also tried using this, from ..Methods.primality import func
but it gives me an error,
ImportError: attempted relative import with no known parent package
Can anyone explain me what am I doing wrong here?