from notebook import notebooknote class menu'''display menu and respond to choices when run ''def __init__(self)self notebook notebook(self choices " "self show_notes" "self search_notes" "self add_note" "self modify_note" "self quit def display_menu(self)print(""notebook menu show all notes search notes add note modify note quit """def run(self)'''display the menu and respond to choices ''while trueself display_menu(choice input("enter an option"action self choices get(choiceif actionaction(elseprint("{ is not valid choiceformat(choice)def show_notes(selfnotes=none)if not notesnotes self notebook notes for note in notesprint("{ }{ }\ { }formatnote idnote tagsnote memo)def search_notes(self)