input: def Fibonacci(n: int) -> int:
      """
      Generates the nth Fibonacci number. The Fibonacci sequence starts with 0 and 1,
      each subsequent number is the sum of the two preceding ones.
      
      >>> Fibonacci(1)
      0
      >>> Fibonacci(2)
      1
      >>> Fibonacci(5)
      3
      """
      if n == 1:
          return 0
      elif n == 2:
          return 1
      else:
          return Fibonacci(n-1) + Fibonacci(n-2)
  
  n = 10
  for i in range(1, n+1):
      print(Fibonacci(i))
output:     if n == 1:
          return 0
      elif n == 2:
          return 1
      else:
          a, b = 0, 1
          for _ in range(3, n + 1):
              a, b = b, a + b
          return b