8- Formatting Python Code

Lesson Summary

Python Enhancement Proposals (PEPs) are documents outlining popular conventions for formatting and styling Python code, such as: - PEP 8, a style guide for Python code - Variables and assignment operators (such as spaces around "=" signs) - Formatting of variable declarations, such as lining up "=" signs in the same column Formatting code can be done using the "Format Document" command in the Command Palette in Visual Studio Code, using Auto PEP 8 as the tool. Using the "Editor Format On Save" setting can cause the code to auto reformat as it is saved.

Complete and Continue