remove n elements from list r code example Example: remove item from a list r x[x != "b"]; # without elements that are "b"