


'''simple docstring'''







from doctest import testmod
from math import sqrt






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


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










'''simple docstring'''







from __future__ import annotations






def       lowerCAmelCase__       (				lowerCamelCase     :			list   ):
       _A     :	Union[str, Any]      =					sorted(lowerCamelCase   )
       _A     :	Tuple      =					len(lowerCamelCase   )
       _A     :	int      =					length >> 1
       return (
           (sorted_list[mid_index] + sorted_list[mid_index - 1]) / 2
           if length % 2 == 0
           else sorted_list[mid_index]
       )






def       lowerCAmelCase__       (				):
       import doctest

       doctest.testmod()


if __name__ == "__main__":
   main()






