input: def fibonacci(n: int) -> None:
      """Prints the Fibonacci series up to a given number n.
      >>> fibonacci(5)
      Fibonacci series: 0 1 1 2 3
      >>> fibonacci(10)
      Fibonacci series: 0 1 1 2 3 5 8 13 21 34
      """
      a = 0
      b = 1
      if n < 0: 
          print("Incorrect input") 
      elif n == 0: 
          print("Fibonacci series:", a)
      else: 
          series = [a, b]
          for i in range(2, n): 
              c = a + b 
              a = b 
              b = c 
              series.append(c)
          print("Fibonacci series:", ' '.join(map(str, series)))
output:     a = 0
      b = 1
      if n < 0: 
          print("Incorrect input") 
      elif n == 0: 
          print("Fibonacci series:", a)
      else: 
          series = [a, b]
          for i in range(2, n): 
              c = a + b 
              a = b 
              b = c 
              series.append(c)
          print("Fibonacci series:", ' '.join(map(str, series)))