(current, total, width=80)
return '[' + '.'*shaded_dots + ' '*(avail_dots-shaded_dots) + ']'
Return thermometer style progress bar string. `total` argument
    can not be zero. The minimum size of bar returned is 3. Example:

        [..........            ]

    Control and trailing symbols (\r and spaces) are not included.
    See `bar_adaptive` for more information.
Return thermometer style progress bar string. `total` argument
    can not be zero. The minimum size of bar returned is 3. Example:
Return thermometer style progress bar string . total argument can not be zero . The minimum size of bar returned is 3 . Example :
def bar_thermometer(current, total, width=80):
    """Return thermometer style progress bar string. `total` argument
    can not be zero. The minimum size of bar returned is 3. Example:

        [..........            ]

    Control and trailing symbols (\r and spaces) are not included.
    See `bar_adaptive` for more information.
    """
    # number of dots on thermometer scale
    avail_dots = width-2
    shaded_dots = int(math.floor(float(current) / total * avail_dots))
    return '[' + '.'*shaded_dots + ' '*(avail_dots-shaded_dots) + ']'
def bar_thermometer ( current , total , width = 80 ) : # number of dots on thermometer scale avail_dots = width - 2 shaded_dots = int ( math . floor ( float ( current ) / total * avail_dots ) ) return '[' + '.' * shaded_dots + ' ' * ( avail_dots - shaded_dots ) + ']'