I have this piece of code which creates a note and adds to the notebook. When I run this I get a Iteration over non-sequence error.
import datetime class Not
If you wanted to actually iterate Notes itself, you could also add a custom __iter__ method to it that returns the .notes property.
__iter__ method to it that returns the .notes property.
class Notebook: def __iter__(self): return iter(self.notes) ...