I was trying to do some coding practice with python. And here's my structure
mydir/
template.py
problem1/
solution.py
problem2/
solution.py
I'd like to write some general-used staff in template.py and import them in solution.py in both problem1 and problem2 and maybe the problems afterwards.
What should I do to make this possible. I was once trying to do this in solution.py
from .. import template
but it failed.