HOW TO: Automatically Format Python Code to PEP8 Style? (+ BONUS Tips):

Autoformat: autopep8 –in-place -a -a

3 Bonus tips for clean code:
• Give meaningful names to variables.
• Make functions that do one thing only.
• Create a skeleton for your code. An essay has an intro, a body, and a conclusion. In code, you have your dependencies, variables and functions, and then execution.


Leave a Reply

Your email address will not be published. Required fields are marked *