from bk import break_and_show debug = True # set debug to False if you do not want to see breakpoints. i = 1 while i < 6: if debug: break_and_show() print(f"square({i}): {i * i}") i += 1