input: Write a function to fix any bugs in the given python code. The function should take a list of numbers as input, sum the elements in the list, and return the sum. The original code is as follows:
  def sum_list(list):
      sum_list = 0
      for num in list:
          sum_list += num
      return sum
  
  assert sum_list([1, 2, 3]) == 6
  assert sum_list([0, 0, 0]) == 0
  assert sum_list([-1, 1, 0]) == 0
  assert sum_list([]) == 0
  assert sum_list([10]) == 10
  
  Output:
  def sum_list(list):
      sum_list = 0
      for num in list:
          sum_list += num
      return sum_list
output: def sum_list(list):
      sum_list = 0
      for num in list:
          sum_list += num
      return sum_list