input: Write a python function to remove the first occurrence of an element from a list.
  assert remove_element([10, 20, 30, 40, 50], 40) == [10, 20, 30, 50]
  assert remove_element([1, 2, 3, 4, 5], 3) == [1, 2, 4, 5]
  assert remove_element([5, 5, 5, 5], 5) == [5, 5, 5]
output: def remove_element(lst, element):
      if element in lst:
          lst.remove(element)
      return lst