input: Write a python function to remove the last element from a list.
  assert remove_last_element([3, 1, 5, 7, 4, 8, 2]) == [3, 1, 5, 7, 4, 8]
  assert remove_last_element([10, 20, 30, 40]) == [10, 20, 30]
  assert remove_last_element([1]) == []
output: def remove_last_element(lst):
      return lst[:-1]