Zen of Python | Laptrinhcanban.com

HOME › >>

Zen of Python

Posted at: https://laptrinhcanban.com/en

Wondering whether to learn python programming language? Then you should read this article, you will see how “ beautiful “ python is.
Let Kiyoshi tell you about Zen of Python - a set of 19 “guiding principles” for writing computer programs, greatly influencing the design of the Python programming language

Zen of Python

Zen of Python is a set of 19 “guiding principles” for writing computer programs that contribute to the design of the Python programming language, written by engineers. Soft Tim Peters.

Peters’ list leaves open a 20th rule “for Guido to fill”, alluding to Rossum Guido van Rossum (en) - the original author of the Python language. The void for rule 20 has yet to be filled in.

You can learn more about Zen of Python at wikipedia

How to print Zen of python content with command

Interestingly, you can print to the screen the Zen of python content with the following command:

import this

Let us check result below:

Beautiful is better than ugly.

Explicit is better than implicit.

Simple is better than complex.

Complex is better than complicated.

Flat is better than nested.

Sparse is better than dense.

Readability counts.

Special cases are not special enough to break rules.


Although practicality beats purity.

Errors should never pass silently.

Unless explicitly silenced.

In face of ambiguity, refuse temptation to guess.

There should be one-- and preferably only one --obvious way to do it.

Although that way may not be obvious at first unless you are Dutch.

Now is better than never.

Although never is often better than *right* now.

If implementation is hard to explain, it is a bad idea.

If implementation is easy to explain, it may be a good idea.

Namespaces are one honking great idea -- let us do more of those!

Needless to say, you probably understand why Python is so popular among programmers, and now on the day of this writing, Python has become the most popular language. gender.
Find out more about the python programming language at the article What is Python .

Summary

After learning about Zen of Python , perhaps you have been imbued with the quintessential thought, the meditative nature of the python programming language. Like the previous articles that Kiyoshi shared, python will forever and should be the first programming language you should choose to study programming.

URL Link

https://laptrinhcanban.com/en/python/nhap-mon-lap-trinh-python/gioi-thieu-python/thien-cua-python-the-zen-of-python/

Thank you for reading and please Like & Share for other friends to learn.
">

HOME  › >>

  • Recent Posts
Profile
きよしです!笑

Author: Kiyoshi (Chis Thanh)

Kiyoshi was a former international student in Japan. After graduating from Toyama University in 2017, Kiyoshi is currently working at BrSE in Tokyo, Japan. Kiyoshi là một cựu du học sinh tại Nhật Bản. Sau khi tốt nghiệp đại học Toyama năm 2017, Kiyoshi hiện đang làm BrSE tại Tokyo, Nhật Bản.