def nested_get(dictionary: dict, keys: list):
    """Set value to dict for list of nested keys

    >>> nested_get({'key': {'nested_key': 123}}, keys=['key', 'nested_key'])
    123
    """
    nested_dict = dictionary
    for key in keys[:-1]:
        nested_dict = nested_dict[key]
    return nested_dict.get(keys[-1])