Although I tried to follow the best practices in Python code formatting, a printed book imposes different constraints.
Sometimes I broke long lines to fit on the page.
Other times I added or removed blank lines between code blocks to avoid page breaks in awkward positions.
I made these changes while composing the print version of Python Fluente, 2ª edição, in early 2026.
A different book layout would require different changes.