def progress_bar(iteration, total):
    """
    entertain the user with a simple yet exquisitely designed progress bar and %
    :param iteration:
    :param total:
    :return:
    """
    try:
        perc = round((iteration/total)*100, 2)
        bar = ('░'*19).replace('░','█',int(round(perc/5,0))) + '░'
        return str("{:.2f}".format(perc)).zfill(6) + '% [' + bar + ']'
    except ZeroDivisionError:
        # this happens in never versions of python. return nothing
        return ''