The Zen of Python is a poem by Tim Peters that is meant to be a guiding principle when writing Python code. In this lesson, you learned how to launch this poem in a Python shell.
Intro and the Zen of Python
00:00 I’d like to talk about idioms or best practices in Python. You’ll often hear Python developers ask one another how Pythonic a piece of code is. They’re simply referring to how idiomatic this piece of code is for solving problems in Python.
We can’t have a talk about Python idioms without first mentioning The Zen of Python by Tim Peters. This poem can be reached in any recent distribution of Python by simply typing in
python -m this.
Become a Member to join the conversation.