Translation of zen of python12/23/2023 ![]() ![]() Vs gur vzcyrzragngvba vf uneq gb rkcynva, vg'f n onq vqrn. Nygubhtu arire vf bsgra orggre guna *evtug* abj. Nygubhtu gung jnl znl abg or boivbhf ng svefg hayrff lbh'er Qhgpu. Gurer fubhyq or bar- naq cersrenoyl bayl bar -boivbhf jnl gb qb vg. Va gur snpr bs nzovthvgl, ershfr gur grzcgngvba gb thrff. The string s is encoded in ROT13 and the code below is used to encode the string and print the content.įcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf. The file is written in the most unpythonic way one can imagine. If we look at the source code, we can see why some people say the Zen of Python is just a joke. The source code is located in the this.py file in the lib directory. ![]() The source code of the import module, which is used to show the Zen of Python is shown below. ![]() If you want to contribute a translation into your native language, please contact us and we will get in touch with you to publish the translation here. The Zen of Python was translated into different languages by contributors. Zen of Python wallart on REDBUBBLE translations A Zen of Python poster can definitely improve any office atmosphere and help to make sure that no one in the team forgets the essential principles of Zen. For example on Etsy or REDBUBBLE, some artists are selling framed prints with programming content. Looking for some Wall Art? The Zen of Python is available as a poster. In this video, you can see an interview with Tim Peters at Pycon 2006 in Dallas. He is a longtime contributor to the Python programming language and quite active on Stack Overflow. He is a software engineer and most known for the Timsort hybrid sorting algorithm. Who wrote Zen of Python? Tim Peters wrote the Zen of Python. The Zen of Python is PEP 20 and was created on 19th August 2004. It is a document that describes new features or other aspects like design and safety to the Python community. Zen_of_python = "".join()Ī PEP in Python is a Python Enhancement Proposal. We can save the Zen of Python as string using the following code. Namespaces are one honking great idea - let's do more of those! If the implementation is easy to explain, it may be a good idea. If the implementation is hard to explain, it's a bad idea. There should be one- and preferably only one -obvious way to do it.Īlthough that way may not be obvious at first unless you're Dutch.Īlthough never is often better than *right* now. In the face of ambiguity, refuse the temptation to guess. Special cases aren't special enough to break the rules. The Python interpreter will then show the Zen of Python: You can save the Zen of Python as string or in a file. The command imports the this module, which will show the Zen of Python. Use the following command to show the Zen of Python. So the better written your code is, the better for everyone in the team. It is much easier to debug clean and well written code and the time saved can be invested in much more fun things.Īnd it's also important to consider that other people read, maintain, and change your code. Code is never perfect the first time it is written and debugging is just a natural process. The biggest advantage of clean code is the time you can save debugging it. You should be able to understand the code after years of not looking at it within seconds, not minutes. But if a developer works in a team or a long-term project, the code needs to be maintainable. Why is it so important to write clean code? Even bad code can work. The Zen of Python is shown after typing import this Clean code saves time It includes 20 guiding principles for good and clean Python code. The Zen of Python is an easter-egg in the Python programming language. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |