def percents(el, seq):
    """
    Computing progress for sequence.
    :param el: element or first number
    :param seq: sequence or last number
    :return: percent
    """
    if isinstance(seq, int):
        percent = el * 100 / seq
    else:
        percent = (seq.index(el) + 1) * 100 / len(seq)
    return round(percent, 2)