input: Write a function to calculate the sum of the series 1 + ½ + ⅓ + ... + 1/n. The function should take an integer n as input and return the sum of the series.
  
  def seriesSum(n):
      total = 0
      for i in range(1, n+1):
          total += 1 / i
      return total
  
  assert seriesSum(5) == 1 + 1/2 + 1/3 + 1/4 + 1/5
  assert seriesSum(1) == 1
  assert seriesSum(10) == 1 + 1/2 + 1/3 + 1/4 + 1/5 + 1/6 + 1/7 + 1/8 + 1/9 + 1/10
  assert seriesSum(0) == 0
output: def seriesSum(n):
      total = 0
      for i in range(1, n+1):
          total += 1 / i
      return total