1 / 9
INTRO

The Extra Blank Line

Looping over a file printed everything double-spaced.

That wasn't print() misbehaving. Each line came out of the file with its \n still attached, and then print() added its own on top. Two newlines, one gap.

The fix is a small method with an odd name.