input: def find_factors(x: int) -> List[int]:
      """
      This function takes a number and returns its factors as a list.
  
      :param x: The number whose factors to be found
      :return: List of factors of the input number
  
      >>> find_factors(5)
      [1, 5]
      >>> find_factors(12)
      [1, 2, 3, 4, 6, 12]
      """
      factors = []
      for i in range(1, x + 1):
          if x % i == 0:
              factors.append(i)
      return factors
output:     factors = []
      for i in range(1, x + 1):
          if x % i == 0:
              factors.append(i)
      return factors