def percent(count, total): #-------------------------------------------------<<<
    """Return a percent value, or 0 if undefined.
    Arguments may float, int, or str.
    """
    if not count or not total:
        return 0
    return 100 * float(count) / float(total)