def stringify_span(range):
    """Returns a nicely-formatted string representing a span of years.

    Arguments:
        range {range} - A range object
    """
    if len(range) >= 2:
        timespan = f"{range[0]}-{range[-1]}"
    else:
        timespan = range[0]
    return timespan