remove method

The remove method allows you to specify a value and remove it from the list.

removemethod1's photo

If there are multiple occurrences of the same value, only the first value will be deleted.

removemethod2's photo