Debug this Python function to find and correct any errors.
def sumN(num): 
  response = 0
  for i in range(1, num + 1):
    response *= i
  return response
def sumN(num): 
  response = 0
  for i in range(1, num + 1):
    response += i
  return response