Using tqdm progress bar in a while loop
问题 I am making a code that simulates a pawn going around a monopoly board a million times. I would like to have a tqdm progress bar that is updated every time a turn around the board is achieved. Below is my current code. I am using a while loop which stops when the number of turns around the board surpasses the desired number. import os from openpyxl import Workbook from monopolyfct import * def main(runs, fileOutput): ### EXCEL SETUP ### theWorkbook = Workbook() # Creates the workbook