The sample output is- - - - - - - - - - - - - - - - - - - - ...
Prompt
The sample output is- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ###################### # Memo App # ###################### 1. Read memos 2. Add memo 3. Delete memo 4. Update memo 5. Exit Choose an option: 1 No memos found. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ###################### # Memo App # ###################### 1. Read memos 2. Add memo 3. Delete memo 4. Update memo 5. Exit Choose an option: 2 Enter your memo: Hello >>> Memo added. <<< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ###################### # Memo App # ###################### 1. Read memos 2. Add memo 3. Delete memo 4. Update memo 5. Exit Choose an option: 1 Your memos: 1. Hello - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ###################### # Memo App # ###################### 1. Read memos 2. Add memo 3. Delete memo 4. Update memo 5. Exit Choose an option: 4 1. Hello Enter the memo number to update: 1 Enter the new memo text: Hi >>> Memo updated. <<< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ###################### # Memo App # ###################### 1. Read memos 2. Add memo 3. Delete memo 4. Update memo 5. Exit Choose an option: 3 1. Hi Enter the memo number to delete: 1 Deleted memo: Hi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ###################### # Memo App # ###################### 1. Read memos 2. Add memo 3. Delete memo 4. Update memo 5. Exit Choose an option: 3 No memos to delete. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ###################### # Memo App # ###################### 1. Read memos 2. Add memo 3. Delete memo 4. Update memo 5. Exit Choose an option: it is my solution memos = [input"Enter your memos"] memonum=memonum+1#when more memo add, memonum add 1 while True: print("\n" + " -" * 30) print("#" * 22) print(f"#{"Memo App":^20}#") print("#" * 22) print("1. Read memos") print("2. Add memo") print("3. Delete memo") print("4. Update memo") print("5. Exit") choice = input("Choose an option: ").strip() print("") if choice == "1": # Read memos if int{memos}==0: #if no memos here print("No memos found" ) if int{memos}>=1: #if have one or more memos print("[memos]")# shows all memos pass elif choice == "2": # Add memo memos.append(input"Enter your memos") # add memos here print("Memo Added") pass elif choice == "3": # Delete memo if int{memo}=0 #if no memos print("No memos to delete") if int{memo}>=1 #if have one or memos memo.remove(input"Enter your memos") # activave the delete memo mechanism print(input:"Enter the memo number to delete") # input the memo print(Deleted memo:input"Enter your memos") #input the desired memo pass elif choice == "4": # Update memo memo=memonum print(input:"Enter the memo number to update:")# selecte deisred memo print(input:"Enter the new memo text:") #update the memo text and replace the old text print( "Memo updated") pass elif choice == "5": print("Goodbye!") break else: print("!!! Invalid choice. Try again. !!!") can you help me to comment my solution? if there are wrong, can you help me to point out all of the wrong and show me the correct coding for each of the statement, thank you so much