input: Write a function to improve the given Python code that calculates the sum of elements of a list. The initial code iterates through the list and accumulates the sum in a variable. The goal is to modify the code to achieve the same result with a simpler approach.
  assert sum_elements([1, 2, 3, 4, 5])==15
  assert sum_elements([-1, -2, -3, -4, -5])==-15
  assert sum_elements([0, 0, 0, 0])==0
  assert sum_elements([10])==10
  assert sum_elements([])==0
output: def sum_elements(lst):
      return sum(lst)