Writing Beautiful Pythonic Code With PEP 8 (Summary)
You now know how to write high-quality, readable Python code by using the guidelines laid out in PEP 8. While the guidelines can seem pedantic, following them can really improve your code, especially when it comes to sharing your code with potential employers or collaborators.
In this video course, you learned:
- What PEP 8 is and why it exists
- Why you should aim to write PEP 8 compliant code
- How to write code that is follows the style guide for Python code
- How to use linters and autoformatters to check your code against PEP 8 guidelines and apply some of them automatically
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
00:00 And there you have it. So now, not only do you know some of the criteria that PEP 8 uses to judge high-quality code, you have a couple of tools in your arsenal to make sure that you’re following the rules.
00:11 If you’re interested in learning more about PEP 8, you can go to pep8.org to see a formatted version of the enhancement proposal. Congrats on getting through this.
00:21 PEP 8 definitely isn’t one of the most exciting Python topics, but it’s critical if you want to collaborate with others and continue improving with Python. You’ll never go wrong by following the PEP 8 criteria, so try to do so as much as possible.
Become a Member to join the conversation.