



'''simple docstring'''





from __future__ import annotations

A__    :   Optional[int]           =					8.988E9  # units = N * m^s * C^-2





def   a_   (		_UpperCAmelCase    :      Dict ,_UpperCAmelCase    :      Any ,_UpperCAmelCase    :      Optional[int] ,_UpperCAmelCase    :      List[str]				)    ->  Dict:
      __snake_case :   Optional[int]													=    abs(chargea * chargea				)

      if (force, chargea, chargea, distance).count(0				) != 1:
            raise ValueError('One and only one argument must be 0'				)
      if distance < 0:
            raise ValueError('Distance cannot be negative'				)
      if force == 0:
            __snake_case :   List[str]													=    COULOMBS_CONSTANT * charge_product / (distance**2)
            return {"force": force}
      elif chargea == 0:
            __snake_case :   List[str]													=    abs(UpperCamelCase_				) * (distance**2) / (COULOMBS_CONSTANT * chargea)
            return {"charge1": chargea}
      elif chargea == 0:
            __snake_case :   Optional[int]													=    abs(UpperCamelCase_				) * (distance**2) / (COULOMBS_CONSTANT * chargea)
            return {"charge2": chargea}
      elif distance == 0:
            __snake_case :   str													=    (COULOMBS_CONSTANT * charge_product / abs(UpperCamelCase_				)) ** 0.5
            return {"distance": distance}
      raise ValueError('Exactly one argument must be 0'				)


if __name__ == "__main__":
    import doctest

    doctest.testmod()







'''simple docstring'''
__SCREAMING_SNAKE_CASE					:				Optional[int]									=		{
    '''a''': '''AAAAA''',
    '''b''': '''AAAAB''',
    '''c''': '''AAABA''',
    '''d''': '''AAABB''',
    '''e''': '''AABAA''',
    '''f''': '''AABAB''',
    '''g''': '''AABBA''',
    '''h''': '''AABBB''',
    '''i''': '''ABAAA''',
    '''j''': '''BBBAA''',
    '''k''': '''ABAAB''',
    '''l''': '''ABABA''',
    '''m''': '''ABABB''',
    '''n''': '''ABBAA''',
    '''o''': '''ABBAB''',
    '''p''': '''ABBBA''',
    '''q''': '''ABBBB''',
    '''r''': '''BAAAA''',
    '''s''': '''BAAAB''',
    '''t''': '''BAABA''',
    '''u''': '''BAABB''',
    '''v''': '''BBBAB''',
    '''w''': '''BABAA''',
    '''x''': '''BABAB''',
    '''y''': '''BABBA''',
    '''z''': '''BABBB''',
    ''' ''': ''' ''',
}


__SCREAMING_SNAKE_CASE					:				Tuple									=		{value: key for key, value in encode_dict.items()}







def       a_				(	UpperCamelCase_ ):
							A_			    =		""
							for letter in word.lower():
														if letter.isalpha() or letter == " ":
																					encoded += encode_dict[letter]
														else:
																					raise Exception("encode() accepts only letters of the alphabet and spaces" )
							return encoded







def       a_				(	UpperCamelCase_ ):
							if set(UpperCamelCase_ ) - {"A", "B", " "} != set():
														raise Exception("decode() accepts only 'A', 'B' and spaces" )
							A_			    =		""
							for word in coded.split():
														while len(UpperCamelCase_ ) != 0:
																					decoded += decode_dict[word[:5]]
																					A_			    =		word[5:]
														decoded += " "
							return decoded.strip()


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

							testmod()





