The Complete PEP8 Professional Python Coding Course covers the PEP 8 document that provides guidelines and best practices on how to write Python code. The primary focus of PEP 8 is to improve the readability and consistency of Python code.
PEP 8 exists to improve the readability of Python code. But why is readability so important? Why is writing readable code one of the guiding principles of the Python language?
As Guido van Rossum said, “Code is read much more often than it is written.” You may spend a few minutes, or a whole day, writing a piece of code to process user authentication. Once you’ve written it, you’re never going to write it again. But you’ll definitely have to read it again. That piece of code might remain part of a project you’re working on. Every time you go back to that file, you’ll have to remember what that code does and why you wrote it, so readability matters.
If you’re new to Python, it can be difficult to remember what a piece of code does a few days, or weeks, after you wrote it. If you follow PEP 8, you can be sure that you’ve named your variables well. You’ll know that you’ve added enough whitespace so it’s easier to follow logical steps in your code. You’ll also have commented your code well. All this will mean your code is more readable and easier to come back to. As a beginner, following the rules of PEP 8 can make learning Python a much more pleasant task.
Specification: PEP8 Guidelines: Python Clean Coding
|
User Reviews
Be the first to review “PEP8 Guidelines: Python Clean Coding” Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Price | $14.99 |
---|---|
Provider | |
Duration | 5 hours |
Year | 2022 |
Level | All |
Language | English ... |
Certificate | Yes |
Quizzes | Yes |
$84.99 $14.99
There are no reviews yet.