def mean(items):
    """Returns the mean of the given items.
    
    Example::
        
        >>> mean([5, 3, 7, 1, 9])
        5.0
    """
    if not items:
        return 0.0
    return sum(items) / len(items)