input: Write a function to identify and correct any bugs in the provided Python code. The function should correctly return the sum of the elements in a given list.
  assert sum_list([1, 2, 3, 4, 5])==15
  assert sum_list([0, -1, 1])==0
  assert sum_list([])==0
  assert sum_list([10, 20, 30])==60
output: def sum_list(lst):
      return sum(lst)