What maximum line length does PEP 8 recommend for lines of Python code?
Correct answer C. 79 characters
Explanation
PEP 8 recommends limiting all lines of code to a maximum of 79 characters. The tighter limit of 72 characters applies to flowing text such as docstrings and comments, which is why 72 is a tempting distractor. Teams may agree on longer limits, but 79 is the guide's default.
Answer checked How we write and check questions
Discussion