input: Write a function to suggest an improvement for the given Python code that calculates the sum of elements in a list. If the given code can be simplified or made more efficient, provide the improved version.
  assert sum_elements([1, 2, 3, 4, 5])==15
  assert sum_elements([10, 20, 30])==60
  assert sum_elements([])==0
  assert sum_elements([-1, -2, -3, -4, -5])==-15
  assert sum_elements([0, 0, 0, 0])==0
output: def sum_elements(lst):
      return sum(lst)