def data_span(data):
    """
    Returns the ampltide span of the given list or array.

    Parameters
    ----------
    data     : np.array, list, tuple
               The data whose amplitude span is to be calcuated.

    Returns
    -------
    span     : float
               The span, defined as the different between the max. and min.
               values of the given data.

    Notes
    -----

    Examples
    --------
    >>> data_span([-1,4,0,-23,27,0.573])
    50
    >>> data_span([])
    Empty list or array provided! Span cannot be calculated.
    """

    if len(data) == 0:
        print("Empty list or array provided! Span cannot be calculated.")
        return

    return max(data) - min(data)