input: Write a function to calculate the sum of the series \(1 + \frac{1}{2} + \frac{1}{3} + \ldots + \frac{1}{n}\). If the given value of n is 0, return 0.
  assert seriesSum(0)==0
  assert seriesSum(1)==1.0
  assert seriesSum(2)==1.5
  assert seriesSum(5)==2.283333333333333
  assert seriesSum(10)==2.9289682539682538
  assert seriesSum(20)==3.597739657143682
output: def seriesSum(n):
      if n == 0:
          return 0
      return sum(1/i for i in range(1, n+1))