Exercise 3: A Progress Bar on One Line — Possible Solution ==================================================================== i = 1 while i <= 5: print(f"Step {i}...", end="") i += 1 print() # restores a real newline once the loop is done Output: Step 1...Step 2...Step 3...Step 4...Step 5... WHY THIS WORKS AS AN ANSWER ------------------------------ Every print() inside the loop uses end="" instead of the default "\n", so each call continues writing on the exact same terminal line instead of starting a new one. The final, unconditional print() after the loop has no arguments at all, which prints just "\n" — its whole job is to close off the line so whatever gets printed next doesn't end up glued onto "Step 5...". Forgetting that last bare print() is the single easiest mistake in this exercise: the program would still run fine, it would just leave the cursor stuck at the end of the progress line.