input: Write a function to fix any bugs in the given Python code. If the given code contains bugs, correct them and return the fixed code. If the given code is already correct, return it as is.
  assert sum_list([1, 2, 3, 4, 5])==15
  assert sum_list([-1, -2, -3, -4, -5])==-15
  assert sum_list([])==0
output: def sum_list(lst):
      return sum(lst)