






"""simple docstring"""



from __future__ import annotations


def      SCREAMING_SNAKE_CASE__    (   snake_case    :      list[int | float]							)->						int | float:






     '''simple docstring'''



     if len(snake_case							) == 0:
          raise ValueError("find_max() arg is an empty sequence"							)
     UpperCAmelCase__		:  int				=				nums[0]
     for x in nums:
          if x > max_num:
               UpperCAmelCase__		:  List[str]				=				x
     return max_num


if __name__ == "__main__":
 import doctest

 doctest.testmod(verbose=True)










"""simple docstring"""



from doctest import testmod
from math import sqrt


def      SCREAMING_SNAKE_CASE__    (   snake_case    :      int							)->						list:






     '''simple docstring'''



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


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


