fuck

                Never    
my_list = [1, 5, 2, 7, 3, 8, 4, 9, 6, 10]
print("Original list:", my_list)

object_to_check = 7

if object_to_check in my_list:
    my_list.remove(object_to_check)
    print("Object", object_to_check, "was found and removed.")
else:
    print("Object", object_to_check, "was not found in the list.")

print("Updated list:", my_list)

Raw Text