Guidelines for writing Pythonic Code
Hey there! Welcome back to the Python basics tutorial! Now you're finally done with the basics. I'll tell you about some guidelines today to help you write clean, readable code or "Pythonic code".
Python Enhancement Proposals
"Python Enhancement Proposal"s or "PEP"s are guidelines for writing Pythonic code. The most common one is PEP8. Since it's simply too big to fit in here, I'll leave you with a link: https://www.python.org/dev/peps/pep-0008/
The Zen Of Python
The Zen Of Python is a short poem written by Tim Peters. You can find it by importing the this
module.
Although pretty self-explanatory, if you're interested in understanding each line: https://medium.com/@Pythonidaer/a-brief-analysis-of-the-zen-of-python-2bfd3b76edbf
If you follow these basic rules, you'll be writing Pythonic code in no time.
Alright. This is the end of the journey. You've learned the Python basics. Now, before I officially end this tutorial, I just wanna give you one piece of advice:
Last updated
Was this helpful?