<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def lst_avg(lst):
    '''
    Returns the average value of a list.

    .. code-block:: jinja

        {% my_list = [1,2,3,4] -%}
        {{ set my_list | avg }}

    will be rendered as:

    .. code-block:: yaml

        2.5
    '''
    salt.utils.versions.warn_until(
        'Neon',
        'This results of this function are currently being rounded.'
        'Beginning in the Salt Neon release, results will no longer be '
        'rounded and this warning will be removed.',
        stacklevel=3
    )

    if not isinstance(lst, collections.Hashable):
        return float(sum(lst)/len(lst))
    return float(lst)