<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mean(xs):
 """ Return the mean value of a sequence of values. 5.0 10.0 10.0 10.0 Traceback (most recent call last):
 ValueError: Input can't have non-numeric elements Traceback (most recent call last):
 ValueError: Input can't be empty """

    try:
        return sum(xs) / float(len(xs))
    except TypeError:
        raise ValueError("Input can't have non-numeric elements")
    except ZeroDivisionError:
        raise ValueError("Input can't be empty")