input: Write a function to print the Fibonacci series up to n numbers where n is a user input. The function should take an integer n as input and print the Fibonacci sequence.
  assert fibonacci_series(10)
  assert fibonacci_series(0), ""
  assert fibonacci_series(1), "0"
  assert fibonacci_series(2), "0 1"
  assert fibonacci_series(5), "0 1 1 2 3"
output: def fibonacci_series(n):
      if n <= 0:
          print("")
          return
      elif n == 1:
          print("0")
          return
      a, b = 0, 1
      series = [a, b]
      for _ in range(2, n):
          a, b = b, a + b
          series.append(b)
      print(" ".join(map(str, series)))