input: 
  def seriesSum(n):
      """
      Calculate the sum of the series 1 + ½ + ⅓ + ... + 1/n.
      >>> seriesSum(5)
      2.283333333333333
      """
      total = 0
      for i in range(1, n + 1):
          total += 1 / i
      return total
  
output:     total = 0
      for i in range(1, n + 1):
          total += 1 / i
      return total