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: pos = int(input("Type a position to delete in the list: ")) llist.delete_in_position(pos) elif option == 7: values = int(input("Type a number of values to insert randomly: ")) llist.insert_random_values(values) print("\n\n-- State of the list ---------------------\n") llist.print_simple_list() print("End of the program")