I have a file structure like
math/
snippets/
numerical_methods.py
homework1/
main.py
homework2/
main.py
And in homework 1's main.py, I would like to do
from ..snippets.numerical_methods import fixed-point-iteration
So that I do not have to re-write this algorithm for every assignment I use it in. But I'm getting the error "Parent module '' not loaded, cannot perform relative import". What am I doing wrong?