code: 
  
  
  
  
  
  '''simple docstring'''
  
  
  
  
  
  from doctest import testmod
  from math import sqrt
  def   _A (	SCREAMING_SNAKE_CASE  :     int		):
  
  
  
  
  
    """simple docstring"""
  
  
  
    a__			:      list[int]            =[]
    if num < 1:
      return facs
    facs.append(1		)
    if num == 1:
      return facs
    facs.append(SCREAMING_SNAKE_CASE		)
    for i in range(2 , int(sqrt(SCREAMING_SNAKE_CASE		)		) + 1		):
      if num % i == 0:  # If i is a factor of num
        facs.append(SCREAMING_SNAKE_CASE		)
        a__			:      Tuple            =num // i  # num//i is the other factor of num
        if d != i:  # If d and i are distinct
          facs.append(SCREAMING_SNAKE_CASE		)  # we have found another factor
    facs.sort()
    return facs
  
  
  if __name__ == "__main__":
       testmod(name="""factors_of_a_number""", verbose=True)
  
  
  
  
  
  
  
style_context: 
  
  
  
  
  
  def   _A (	SCREAMING_SNAKE_CASE  :     int		):
  
  
  
  
  
    """simple docstring"""
  
  
  
    if not isinstance(SCREAMING_SNAKE_CASE , SCREAMING_SNAKE_CASE		) or number < 0:
      raise ValueError("Input must be a non-negative integer"		)
  
    a__			:      List[str]            =number & ~(number - 1)
    a__			:      Optional[int]            =0
    while intermediate:
      intermediate >>= 1
      index += 1
    return index - 1
  
  
  if __name__ == "__main__":
       import doctest
  
       doctest.testmod(verbose=True)
  
  
  
  
  
  
  