



def 						a__     (						_UpperCamelCase     :	float							):
   return -num if num < 0 else num





def 						a__     (						_UpperCamelCase     :	list[int]							):
   if len(_UpperCamelCase							) == 0:
      raise ValueError('''abs_min() arg is an empty sequence'''							)
   __lowerCamelCase  							=      x[0]
   for i in x:
      if abs_val(_UpperCamelCase							) < abs_val(_UpperCamelCase							):
         __lowerCamelCase  							=      i
   return j





def 						a__     (						_UpperCamelCase     :	list[int]							):
   if len(_UpperCamelCase							) == 0:
      raise ValueError('''abs_max() arg is an empty sequence'''							)
   __lowerCamelCase  							=      x[0]
   for i in x:
      if abs(_UpperCamelCase							) > abs(_UpperCamelCase							):
         __lowerCamelCase  							=      i
   return j





def 						a__     (						_UpperCamelCase     :	list[int]							):
   if len(_UpperCamelCase							) == 0:
      raise ValueError('''abs_max_sort() arg is an empty sequence'''							)
   return sorted(_UpperCamelCase	,key=_UpperCamelCase							)[-1]





def 						a__     (						):
   assert abs_val(0							) == 0
   assert abs_val(34							) == 34
   assert abs_val(-10_00_00_00_00_00							) == 10_00_00_00_00_00

   __lowerCamelCase  							=      [-3, -1, 2, -11]
   assert abs_max(_UpperCamelCase							) == -11
   assert abs_max_sort(_UpperCamelCase							) == -11
   assert abs_min(_UpperCamelCase							) == -1


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  test_abs_val()
  print(abs_val(-34))  # --> 34











def 						a__     (						_UpperCamelCase     :	int							):
   if not isinstance(_UpperCamelCase	,_UpperCamelCase							):
      __lowerCamelCase  							=      (
          '''operation can not be conducted on a object of type '''
          F"""{type(_UpperCamelCase							).__name__}"""
      )
      raise TypeError(_UpperCamelCase							)
   __lowerCamelCase  							=      ''''''
   for _ in range(0	,32							):
      bit_string += str(number % 2							)
      __lowerCamelCase  							=      number >> 1
   return bit_string





def 						a__     (						_UpperCamelCase     :	int							):
   if number < 0:
      raise ValueError('''the value of input must be positive'''							)
   elif isinstance(_UpperCamelCase	,_UpperCamelCase							):
      raise TypeError('''Input value must be a \'int\' type'''							)
   elif isinstance(_UpperCamelCase	,_UpperCamelCase							):
      raise TypeError('''\'<\' not supported between instances of \'str\' and \'int\''''							)
   __lowerCamelCase  							=      0
   # iterator over [1 to 32],since we are dealing with 32 bit integer
   for _ in range(1	,33							):
      # left shift the bits by unity
      __lowerCamelCase  							=      result << 1
      # get the end bit
      __lowerCamelCase  							=      number % 2
      # right shift the bits by unity
      __lowerCamelCase  							=      number >> 1
      # add that bit to our ans
      __lowerCamelCase  							=      result | end_bit
   return get_reverse_bit_string(_UpperCamelCase							)


if __name__ == "__main__":
  import doctest

  doctest.testmod()






