Guidelines for writing Pythonic Code
Last updated
Was this helpful?
Last updated
Was this helpful?
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 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:
The Zen Of Python is a short poem written by Tim Peters. You can find it by importing the this
module.
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:
Although pretty self-explanatory, if you're interested in understanding each line: