it looks like everything is behaving as expected let' create our notebook nextclass notebook'''represent collection of notes that can be taggedmodifiedand searched ''def __init__(self)'''initialize notebook with an empty list ''self notes [def new_note(selfmemotags='')'''create new note and add it to the list ''self notes append(note(memotags)def modify_memo(selfnote_idmemo)'''find the note with the given id and change its memo to the given value ''for note in self notesif note id =note_idnote memo memo break def modify_tags(selfnote_idtags)'''find the note with the given id and change its tags to the given value ''for note in self notesif note id =note_idnote tags tags break def search(selffilter)'''find all notes that match the given filter string ''return [note for note in self notes if note match(filter)we'll clean this up in minute firstlet' test it to make sure it worksfrom notebook import notenotebook notebook( new_note("hello world" new_note("hello again" notes [<notebook note object at xb ac>