Description
Naming Conventions During a recent workshop, bootcamp instructor Alex Baransky shared some of the best practices in writing Python code for better readability…
Summary
- Naming Conventions During a recent workshop, bootcamp instructor Alex Baransky shared some of the best practices in writing Python code for better readability.
- Through this series of articles, we will summarize and give you a few examples of those best practices to help you write more elegant Python code, benefiting those who may read and use your code in the future, including yourself.
- Naming conventions are therules of thumb for naming theobjects that you create.
- Lowercase letter “el” - instead, use a capital letter “L” Uppercase letter “oh” - “O” Uppercase letter “eye” - “I” We avoid those names because in some fonts, they are indistinguishable from the numbers “1” and “0”, which makes it difficult for the user to understand what’s going on.