def give_pendant(character: str) -> str:
    """Returns the pendant to each character."""
    if character == ')': return '('
    if character == ']': return '['
    if character == '}': return '{'
    if character == '>': return '<'
    raise ValueError(f"Unknown character '{character}' encountered.")