from functools import reduce


def mean_list(arr):
    """ Calculate mean of list """
    if not isinstance(arr, list):
        return 'Use only list with numbers for this function'

    if not len(arr):
        return None

    m = reduce(lambda x,y: x + y, arr, 0) / len(arr)
    return m