python remove

# the list.remove(object) method takes one argument 
# the object or element value you want to remove from the list
# it removes the first coccurence from the list

generic_list = [1, 2, 2, 2, 3, 3, 4, 5, 5, 5, 6, 8, 8, 8]

generic_list.remove(1)

# The Generic list will now be:
# [2, 2, 2, 3, 3, 4, 5, 5, 5, 6, 8, 8, 8]

Here is what the above code is Doing:
1. We created a list called generic_list.
2. We used the list.remove(object) method to remove the first occurrence of the value 1 from the list.
3. We printed the list to the console to show the results.