while True: print(menu) option = int(input("Select an option: ")) if option == 0: break elif option == 1: value = int(input("Type a value to insert at the beginning: ")) llist.insert_begin(value) elif option == 2: value = int(input("Type a value to insert at the end: ")) llist.insert_end(value) elif option == 3: value = int(input("Type a value to insert: ")) pos = int(input("Type a position into the list: ")) print("\nCurrent list:\n") llist.print_simple_list() llist.insert_position(value, pos) elif option == 4: llist.delete_begin() elif option == 5: llist.delete_end() elif option == 6: