December 2020
Intermediate to advanced
384 pages
9h 54m
English

Code formatting is applying a set of rules to source code to give it a certain appearance. Although unimportant to the computer parsing your program, code formatting is vital for readability, which is necessary for maintaining your code. If your code is difficult for humans (whether it’s you or a co-worker) to understand, it will be hard to fix bugs or add new features. Formatting code isn’t a mere cosmetic issue. Python’s readability is a critical reason for the language’s popularity.
This chapter introduces you to Black, a code formatting tool that can automatically format your source code into a consistent, ...
Read now
Unlock full access