input: Write a function to correct any bugs in the given Python code for summing elements in a list. If a bug is found, fix it and return the corrected code. If no bug is found, return the original code.
  assert sum_list([1, 2, 3])==6
  assert sum_list([-1, 0, 1])==0
  assert sum_list([])==0
  assert sum_list([10, 20, 30, 40])==100
output: def sum_list(lst):
      return sum(lst)