def list_to_dict(lst):

    """
    Converts an input list with mapped characters (every
    odd entry is the key of the dictionary and every
    even entry adjacent to the odd entry is its correponding
    value)  to a dictionary.

    Parameters
    ----------
    lst : list
        Input list.

    Returns
    -------
    res_dct : dict
        A dictionary with every element mapped with
        its successive element starting from index 0.

    Examples
    --------
    >>> lst = [5, 9, 3, 6, 2, 7]
    >>> list_to_dict(lst)
    {5: 9, 3: 6, 2: 7}

    """

    res_dct = {lst[i]: lst[i + 1] for i in range(0, len(lst), 2)}
    return res_dct