The errors appear because it's your task to implement the functions so that the tests (who output the errors you're seeing) 'pass'.
As we can see in
the code, the
__ne__ function is simply not implemented yet and a
NotImplementedError error is raised. You are meant to remove this line and implement the function's functionality. That's the whole task here.
FYI, chapter 1 of the book also state you need to open ecc.py to start the exercise. I can see this confuse some people though, since i expected explicit instruction such as "To solve exercise 1, you need to open
ecc.py and edit
__ne__ function".
You can see this in action in the code that accompanies this book. Once you’ve set up Jupyter Notebook (see [setting_up]), you can navigate to code-ch01/Chapter1.ipynb and run the code to see the results. For the next exercise, you’ll want to open up ecc.py by clicking the link in the Exercise 1 box. If you get stuck, please remember that the answers to every exercise are in [appendix_solutions].
I can confirm copying the answer to ecc.py (rather than trying add function to imported object) works (passed the test).
Yeah, I've been aware of ecc.py and answers.py . The functions were implemented into ecc.py from the beginning
To be safe I copied and pasted functions from answers.py into ecc.py . The problem still persists
Copying and pasting the functions themselves in the program does not help as well