



def  lowerCamelCase_	(      lowerCAmelCase__	:	list			,	lowerCAmelCase__	:	list				)       ->							float:

							'''simple docstring'''






							_validate_point(__lowercase				)
							_validate_point(__lowercase				)
							if len(__lowercase				) != len(__lowercase				):
														raise ValueError('Both points must be in the same n-dimensional space'				)

							return float(sum(abs(a - b				) for a, b in zip(__lowercase			,	__lowercase				)				)				)






def  lowerCamelCase_	(      lowerCAmelCase__	:	list[float]				)       ->							None:

							'''simple docstring'''






							if point:
														if isinstance(__lowercase			,	__lowercase				):
																					for item in point:
																												if not isinstance(__lowercase			,	(int, float)				):
																																			A      						=    (
																																			    'Expected a list of numbers as input, found '
																																			    F'''{type(__lowercase				).__name__}'''
																																			)
																																			raise TypeError(__lowercase				)
														else:
																					A      						=    F'''Expected a list of numbers as input, found {type(__lowercase				).__name__}'''
																					raise TypeError(__lowercase				)
							else:
														raise ValueError('Missing an input'				)






def  lowerCamelCase_	(      lowerCAmelCase__	:	list			,	lowerCAmelCase__	:	list				)       ->							float:

							'''simple docstring'''






							_validate_point(__lowercase				)
							_validate_point(__lowercase				)
							if len(__lowercase				) != len(__lowercase				):
														raise ValueError('Both points must be in the same n-dimensional space'				)

							return float(sum(abs(x - y				) for x, y in zip(__lowercase			,	__lowercase				)				)				)


if __name__ == "__main__":
				import doctest

				doctest.testmod()







def       _SCREAMING_SNAKE_CASE    (			__lowercase :      str     )    ->   str:





    """simple docstring"""

    __A       =						""""""
    for ch in key:
        if ch == " " or ch not in key_no_dups and ch.isalpha():
            key_no_dups += ch
    return key_no_dups



def       _SCREAMING_SNAKE_CASE    (			__lowercase :      str     )    ->   dict[str, str]:





    """simple docstring"""

    __A       =						[chr(i + 6_5     ) for i in range(2_6     )]
    # Remove duplicate characters from key
    __A       =						remove_duplicates(key.upper()     )
    __A       =						len(__lowercase     )
    # First fill cipher with key characters
    __A       =						{alphabet[i]: char for i, char in enumerate(__lowercase     )}
    # Then map remaining characters in alphabet to
    # the alphabet from the beginning
    for i in range(len(__lowercase     )      ,					2_6     ):
        __A       =						alphabet[i - offset]
        # Ensure we are not mapping letters to letters previously mapped
        while char in key:
            offset -= 1
            __A       =						alphabet[i - offset]
        __A       =						char
    return cipher_alphabet



def       _SCREAMING_SNAKE_CASE    (			__lowercase :      str      ,					__lowercase :      dict[str, str]     )    ->   str:





    """simple docstring"""

    return "".join(cipher_map.get(__lowercase      ,					__lowercase     ) for ch in message.upper()     )



def       _SCREAMING_SNAKE_CASE    (			__lowercase :      str      ,					__lowercase :      dict[str, str]     )    ->   str:





    """simple docstring"""

    __A       =						{v: k for k, v in cipher_map.items()}
    return "".join(rev_cipher_map.get(__lowercase      ,					__lowercase     ) for ch in message.upper()     )



def       _SCREAMING_SNAKE_CASE    (			)    ->   None:





    """simple docstring"""

    __A       =						input("""Enter message to encode or decode: """     ).strip()
    __A       =						input("""Enter keyword: """     ).strip()
    __A       =						input("""Encipher or decipher? E/D:"""     ).strip()[0].lower()
    try:
        __A       =						{"""e""": encipher, """d""": decipher}[option]
    except KeyError:
        raise KeyError("""invalid input option"""     )
    __A       =						create_cipher_map(__lowercase     )
    print(func(__lowercase      ,					__lowercase     )     )


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  main()




