input: Write a function to identify and fix any bugs with the given Python code. If the given code is correct, return the same code without any changes.
  
  def sum_list(list):
      sum_list = 0
      for num in list:
          sum_list += num
      return sum_list
  
  assert sum_list([1, 2, 3, 4, 5])==15
  assert sum_list([])==0
  assert sum_list([10, -5, 3, 2])==10
  assert sum_list([-1, -2, -3, -4, -5])==-15
  assert sum_list([0, 0, 0, 0])==0
output: def sum_list(list):
      sum_list = 0
      for num in list:
          sum_list += num
      return sum_list