Open jhtullis opened 1 month ago
In additional material, there is this code snippet:
iters = int(1e7) chunk = iters // 20 for i in range(iters): print("r[{:<20}] i = {}".format('='*((i//chunk)+1), i), end='', flush=True)
This code doesn't work as advertised, it is missing a backslash before the "r" in the string. It should read:
iters = int(1e7) chunk = iters // 20 for i in range(iters): print("\r[{:<20}] i = {}".format('='*((i//chunk)+1), i), end='', flush=True)
In additional material, there is this code snippet:
This code doesn't work as advertised, it is missing a backslash before the "r" in the string. It should read: