input: from typing import List
  
  def Fibonacci_Sequence(limit: int) -> List[int]:
      """ Calculates the Fibonacci sequence up to a given number and returns the sequence as a list.
      >>> Fibonacci_Sequence(5)
      [0, 1, 1, 2, 3, 5]
      >>> Fibonacci_Sequence(10)
      [0, 1, 1, 2, 3, 5, 8]
      """
      sequence = [0, 1]
      while sequence[-1] + sequence[-2] <= limit:
          sequence.append(sequence[-1] + sequence[-2])
      return sequence
output:     sequence = [0, 1]
      while sequence[-1] + sequence[-2] <= limit:
          sequence.append(sequence[-1] + sequence[-2])
      return sequence