input: 
  def fibonacci_series(n: int) -> None:
      """Prints the Fibonacci series up to a given number n.
      >>> fibonacci_series(5)
      0 1 1 2 3
      >>> fibonacci_series(10)
      0 1 1 2 3 5 8
      """
      a, b = 0, 1
      if n <= 0:
          print("Incorrect input")
      elif n == 1:
          print(a)
      else:
          print(a, end=" ")
          print(b, end=" ")
          for _ in range(2, n):
              c = a + b
              a, b = b, c
              print(c, end=" ")
          print()
  
  n = int(input("Enter a number: "))
  fibonacci_series(n)
  
output:     a, b = 0, 1
      if n <= 0:
          print("Incorrect input")
      elif n == 1:
          print(a)
      else:
          print(a, end=" ")
          print(b, end=" ")
          for _ in range(2, n):
              c = a + b
              a, b = b, c
              print(c, end=" ")
          print()