from typing import Any


def get_value(dct: dict, keys: tuple) -> Any:
    """Get the value by walking along a key chain."""
    result = dct
    for key in keys:
        result = result[key]
    return result