input: Write a function to print out 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 series up to that number of terms.
  assert fibonacci(10)
  assert fibonacci(5)
  assert fibonacci(0)
  assert fibonacci(1)
  assert fibonacci(2)
output: def fibonacci(n):
      if n <= 0:
          return
      a, b = 0, 1
      for _ in range(n):
          print(a, end=' ')
          a, b = b, a + b
      print()