Making Notes In Python Code
Making Notes In Python Code
class NotetakingApp:
def __init__(self):
self.notes = {}
def create_note(self):
self.notes[title] = content
def view_note(self):
if title in self.notes:
else:
def edit_note(self):
if title in self.notes:
self.notes[title] = new_content
else:
def delete_note(self):
if title in self.notes:
del self.notes[title]
else:
print("List of notes:")
print(title)
def run(self):
while True:
print("\nNote-taking App")
print("6. Quit")
if choice == "1":
self.create_note()
self.view_note()
self.edit_note()
self.delete_note()
self.list_notes()
break
else:
if __name__ == "__main__":
app = NotetakingApp()
app.run()