



def 						_lowerCAmelCase    (					__lowerCamelCase :  float  ):



 """simple docstring"""





 return -num if num < 0 else num






def 						_lowerCAmelCase    (					__lowerCamelCase :  list[int]  ):



 """simple docstring"""





 if len(__lowerCamelCase  ) == 0:
  raise ValueError("abs_min() arg is an empty sequence"  )
 __SCREAMING_SNAKE_CASE							:     int							=						x[0]
 for i in x:
  if abs_val(__lowerCamelCase  ) < abs_val(__lowerCamelCase  ):
   __SCREAMING_SNAKE_CASE							:     List[str]							=						i
 return j






def 						_lowerCAmelCase    (					__lowerCamelCase :  list[int]  ):



 """simple docstring"""





 if len(__lowerCamelCase  ) == 0:
  raise ValueError("abs_max() arg is an empty sequence"  )
 __SCREAMING_SNAKE_CASE							:     Optional[Any]							=						x[0]
 for i in x:
  if abs(__lowerCamelCase  ) > abs(__lowerCamelCase  ):
   __SCREAMING_SNAKE_CASE							:     List[str]							=						i
 return j






def 						_lowerCAmelCase    (					__lowerCamelCase :  list[int]  ):



 """simple docstring"""





 if len(__lowerCamelCase  ) == 0:
  raise ValueError("abs_max_sort() arg is an empty sequence"  )
 return sorted(__lowerCamelCase		,						key=__lowerCamelCase  )[-1]






def 						_lowerCAmelCase    (					):



 """simple docstring"""





 assert abs_val(0  ) == 0
 assert abs_val(34  ) == 34
 assert abs_val(-100000000000  ) == 100000000000

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


if __name__ == "__main__":
      import doctest

      doctest.testmod()

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







"""simple docstring"""

def    lowerCAmelCase			(__UpperCamelCase							:    int							,					__UpperCamelCase							:    int			):
							"""simple docstring"""


							return (input_a, input_a).count(0			) % 2


def    lowerCAmelCase			():
							"""simple docstring"""


							assert xor_gate(0							,					0			) == 0
							assert xor_gate(0							,					1			) == 1
							assert xor_gate(1							,					0			) == 1
							assert xor_gate(1							,					1			) == 0


if __name__ == "__main__":
				print(xor_gate(0, 0))
				print(xor_gate(0, 1))



