What is "Column 80"?🤔 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is "Column 80"?🤔

1st Aug 2020, 9:52 AM
Prince Samuel
Prince Samuel - avatar
2 Answers
+ 2
It sounds like you wrote a line of text with over 80 characters. Some Coding Style guidelines such as PEP-8 recommend keeping lines less than 80 characters long. If you run over, just find a way to break your lines up. Strings can be concatenated together over multiple lines. Comments can be broken into multiple lines. Function headers can be broken so parameters are listed on other lines. If you're nesting blocks really deep, refactor some of it into a separate function. There is always a way around it. Want to know why 80 is a generally recommended line length limit? There is some discussion at: https://stackoverflow.com/questions/88942/why-does-pep-8-specify-a-maximum-line-length-of-79-characters
2nd Aug 2020, 3:44 AM
Josh Greig
Josh Greig - avatar
0
Thanks Josh👍👍 I really appreciate it
2nd Aug 2020, 1:44 PM
Prince Samuel
Prince Samuel - avatar