




'''simple docstring'''





from doctest import testmod
from math import sqrt





def UpperCAmelCase    (       UpperCAmelCase_						):
    _a				:							list[int]							       =      []
    if num < 1:
        return facs
    facs.append(1						)
    if num == 1:
        return facs
    facs.append(UpperCAmelCase_						)
    for i in range(2   ,	int(sqrt(UpperCAmelCase_						)						) + 1						):
        if num % i == 0:  # If i is a factor of num
            facs.append(UpperCAmelCase_						)
            _a				:							str							       =      num // i  # num//i is the other factor of num
            if d != i:  # If d and i are distinct
                facs.append(UpperCAmelCase_						)  # we have found another factor
    facs.sort()
    return facs


if __name__ == "__main__":
  testmod(name='''factors_of_a_number''', verbose=True)







def 						_lowerCAmelCase    (					__lowerCamelCase :  list  ):



 """simple docstring"""





 if len(__lowerCamelCase  ) <= 1:
  return data
 else:
  return [
      *quick_sort([e for e in data[1:] if e <= data[0]]  ),
      data[0],
      *quick_sort([e for e in data[1:] if e > data[0]]  ),
  ]


if __name__ == "__main__":
      import doctest

      doctest.testmod()






