remove_first(items, value) that removes only the first occurrence of value from items using .remove() and returns the list. If value is not present, return the list unchanged.items = [1, 2, 3, 2, 1], value = 2
[1, 3, 2, 1]
Only the first 2 (at index 1) is removed.
items = [1, 2], value = 9
[1, 2]
9 is not present, so nothing changes.
.remove(value) raises ValueError if value is missing — guard with an `in` check first.