input: Write a function to generate and 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 first n numbers of the Fibonacci sequence.
  assert print_fibonacci(5) # Output should be: 0 1 1 2 3
  assert print_fibonacci(10) # Output should be: 0 1 1 2 3 5 8 13 21 34
  assert print_fibonacci(1) # Output should be: 0
  assert print_fibonacci(0) # Output should be an empty line
  assert print_fibonacci(2) # Output should be: 0 1
output: def print_fibonacci(n):
      if n <= 0:
          print()
          return
      a, b = 0, 1
      print(a, end=' ')
      if n > 1:
          print(b, end=' ')
      for _ in range(2, n):
          a, b = b, a + b
          print(b, end=' ')
      print()