input: Write a function to identify and fix any issues in the given Python code.
  
  ### Input:
  def sum_list(list):
      sum_list = 0
      for num in list:
          sum_list += num
      return sum
  
  ### 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