






'''simple docstring'''



SCREAMING_SNAKE_CASE							=						{
    'meter': 'm',
    'kilometer': 'km',
    'megametre': 'Mm',
    'gigametre': 'Gm',
    'terametre': 'Tm',
    'petametre': 'Pm',
    'exametre': 'Em',
    'zettametre': 'Zm',
    'yottametre': 'Ym',
}
# Exponent of the factor(meter)
SCREAMING_SNAKE_CASE							=						{
    'm': 0,
    'km': 3,
    'Mm': 6,
    'Gm': 9,
    'Tm': 12,
    'Pm': 15,
    'Em': 18,
    'Zm': 21,
    'Ym': 24,
}


def 				lowercase_					(     __A			:							float       ,   __A			:							str       ,   __A			:							str      )							->   float:



 """simple docstring"""




 lowercase       : Any						=from_type.lower().strip('''s'''      )
 lowercase       : Optional[Any]						=to_type.lower().strip('''s'''      )

 lowercase       : Optional[int]						=UNIT_SYMBOL.get(__A       ,   __A      )
 lowercase       : int						=UNIT_SYMBOL.get(__A       ,   __A      )

 if from_sanitized not in METRIC_CONVERSION:
  lowercase       : int						=(
      F'Invalid \'from_type\' value: {from_type!r}.\n'
      F'Conversion abbreviations are: {", ".join(__A      )}'
  )
  raise ValueError(__A      )
 if to_sanitized not in METRIC_CONVERSION:
  lowercase       : int						=(
      F'Invalid \'to_type\' value: {to_type!r}.\n'
      F'Conversion abbreviations are: {", ".join(__A      )}'
  )
  raise ValueError(__A      )
 lowercase       : List[str]						=METRIC_CONVERSION[from_sanitized]
 lowercase       : str						=METRIC_CONVERSION[to_sanitized]
 lowercase       : List[str]						=1

 if from_exponent > to_exponent:
  lowercase       : Optional[int]						=from_exponent - to_exponent
 else:
  lowercase       : int						=-(to_exponent - from_exponent)

 return value * pow(1_0       ,   __A      )


if __name__ == "__main__":
      from doctest import testmod

      testmod()











'''simple docstring'''



def 				lowercase_					(     __A			:							int       ,   __A			:							int      )							->   int:



 """simple docstring"""




 return 1 if input_a == input_a else 0


def 				lowercase_					(     )							->   None:



 """simple docstring"""




 assert xnor_gate(0       ,   0      ) == 1
 assert xnor_gate(0       ,   1      ) == 0
 assert xnor_gate(1       ,   0      ) == 0
 assert xnor_gate(1       ,   1      ) == 1


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



