input: def generate_factors_list(x: int) -> List[int]:
      """
      This function takes a number and returns its factors as a list
      
      :param x: The number whose factors to be calculated 
      :return: List of factors of the number
      
      >>> generate_factors_list(6)
      [1, 2, 3, 6]
      >>> generate_factors_list(10)
      [1, 2, 5, 10]
      """
      
      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