python-mastery/Exercises/soln9_2.md
2023-07-16 20:21:00 -05:00

463 B
Raw Blame History

Exercise 9.2 - Solution

(a) Making a package

You dont need to modify much source code. Just make a directory with this structure:

structly/
    __init__.py
    validate.py
    reader.py
    structure.py
    tableformat.py

The __init__.py file can be empty. You need to make one small change to the structure.py file to make the import statement work.

# structure.py

...
from .validate import Validator

Back