input: Write a function to remove all occurrences of a specified element from a list.
  assert remove_element([1, 2, 3, 4, 5, 2], 2) == [1, 3, 4, 5]
  assert remove_element([10, 20, 30, 40, 50], 30) == [10, 20, 40, 50]
  assert remove_element([1, 1, 1, 2, 2, 2], 1) == [2, 2, 2]
output: def remove_element(lst, element):
      return [x for x in lst if x != element]